Commit Graph

495 Commits

Author SHA1 Message Date
Juany Davila
d9e0367d98 [MIG] rma_operating_unit: migration to 14.0 2023-06-07 12:31:29 +02:00
Juany Davila
577dd0078d [IMP] rma_operating_unit: black, isort, prettier 2023-06-07 12:31:29 +02:00
Aaron Henriquez
18aa56b17e [FIX]dependencies 2023-06-07 12:31:28 +02:00
aheficent
c680effc9f [FIX]rma_operating_unit, wizard was not returning anything 2023-06-07 12:31:28 +02:00
aaron
c2a31e556e [FIX]rma_operating_unit view 2023-06-07 12:31:28 +02:00
aaron
3d6edd5eb8 [FIX]rma_operating_unit view domains 2023-06-07 12:31:28 +02:00
Beñat Jimenez
250656eb29 [MIG] rma_operating_unit: Migration to v12 2023-06-07 12:31:28 +02:00
Maxime Chambreuil
fcaef49fdf [MIG] Migrate configuration and cleanup 2023-06-07 12:31:28 +02:00
Nikul Chaudhary
1b5c77d946 [FIX] Fixed UT & Travis 2023-06-07 12:31:28 +02:00
aheficent
be856638ab [MIG]rma_operating_unit to v10 2023-06-07 12:31:28 +02:00
aheficent
76d3dbe276 [ADD] rma_operating_unit 2023-06-07 12:31:28 +02:00
Joan Sisquella
f752049a2f [FIX] rma: procurement origin
In the current implementation of Odoo's _assign_picking() method in stock.move, there's a conditional check that looks at whether all the moves associated with a picking have the same partner_id and origin. If any move doesn't align with these conditions, the origin of the picking is set to False.

        if any(picking.partner_id.id != m.partner_id.id or
                picking.origin != m.origin for m in moves):
            # If a picking is found, we'll append `move` to its move list and thus its
            # `partner_id` and `ref` field will refer to multiple records. In this
            # case, we chose to  wipe them.
            picking.write({
                'partner_id': False,
                'origin': False,
            })
In the context of RMA when we have multiple moves associated with a picking, each coming from a different RMA order line, we encounter a problem. Each move has its origin set as the name of the RMA orde line (line.name), so as soon as a second move from a different line is appended to the picking, the origin of the picking is wiped, because it doesn't match the origin of the first move.

In order to prevent the partner_id of the picking from being set to False when there are multiple associated moves, I propose that we change the origin of the procurement from the name of the RMA line to the name of the procurement group (group.name). This way, all moves associated with a picking will share the same origin, preserving the origin of the picking and ensuring it doesn't get inadvertently set to False.
2023-05-30 15:49:27 +02:00
Lois Rilo
ba45cb362d Merge pull request #410 from ForgeFlow/15.0-mig-rma_put_away
[15.0][MIG] rma_put_away
2023-03-06 15:05:03 +01:00
Lois Rilo
63d85fc881 Merge pull request #408 from ForgeFlow/15.0-mig-rma_sale_force_invoiced
[15.0][MIG] rma_sale_force_invoiced
2023-03-06 15:03:39 +01:00
DavidJForgeFlow
1bce8d0bbe [MIG] rma_put_away: Migration to 15.0 2023-03-03 16:30:39 +01:00
DavidJForgeFlow
1602c88bad [IMP] rma_put_away: pre-commit stuff 2023-03-03 16:26:00 +01:00
Jordi Ballester
0aeef6df96 [FIX] rma_put_away: fixes 2023-03-03 16:25:21 +01:00
Jordi Ballester
145f1126e2 [ADD] rma_put_away 2023-03-03 16:25:21 +01:00
DavidJForgeFlow
9f16814f7e [MIG] rma_sale_force_invoiced: Migration to 15.0 2023-03-03 16:09:09 +01:00
DavidJForgeFlow
ebe1212827 [IMP] rma_sale_force_invoiced: pre-commit stuff 2023-03-03 16:02:07 +01:00
Jordi Ballester
157f73cb2a [ADD] rma_sale_force_invoiced 2023-03-03 16:01:07 +01:00
Jordi Ballester Alomar
2fc2ffbb80 Merge pull request #406 from ForgeFlow/15.0-fp-404
[15.0][IMP] rma_account: add index in account.move.line to field 'rma_line_id'
2023-02-28 09:20:01 +01:00
Jordi Ballester Alomar
05ac2edd0b [IMP] rma_account: add index in account.move.line to field 'rma_line_id' 2023-02-28 09:00:45 +01:00
Lois Rilo
a43d640667 Merge pull request #396 from ForgeFlow/15.0-fp-393
[15.0][IMP] rma: limit state statusbar
2023-02-22 15:39:56 +01:00
DavidJForgeFlow
acce14ce7e [IMP] rma: limit state statusbar 2023-02-22 15:36:52 +01:00
Lois Rilo
0e29c8e938 Merge pull request #392 from ForgeFlow/15.0-fp-391
[15.0][FIX] rma: in multi step routes, only reserve first step
2023-02-21 15:07:17 +01:00
Lois Rilo
73b215b25c [FIX] rma: in multi step routes, only reserve first step
We shoul not force reservation on next steps on a multi step
route, oherwise a inconsistency is generated and the transfers
cannot be processed or cancel so the user gets stuck ("it is
not possible to unreserve more products that you have in stock"
error).
2023-02-21 15:01:31 +01:00
Lois Rilo
5521e0839f Merge pull request #388 from ForgeFlow/15.0-fp-379
[15.0][IMP] rma_repair: button cancel
2023-02-21 14:47:04 +01:00
Lois Rilo
6ef680cc43 Merge pull request #387 from ForgeFlow/15.0-fp-378
[15.0][IMP] rma_sale: button cancel
2023-02-21 14:46:44 +01:00
Lois Rilo
464a7c4243 Merge pull request #386 from ForgeFlow/15.0-fp-377
[15.0][IMP] rma_purchase: button cancel
2023-02-21 14:46:29 +01:00
Lois Rilo
17185bb370 Merge pull request #385 from ForgeFlow/15.0-fp-376
[15.0][IMP] rma: cancel rma_lines
2023-02-21 14:45:43 +01:00
DavidJForgeFlow
1079053a9f [IMP] rma_repair: button cancel 2023-02-20 20:36:24 +01:00
DavidJForgeFlow
9d89891c8c [IMP] rma_sale: button cancel 2023-02-20 20:35:12 +01:00
DavidJForgeFlow
667d338451 [IMP] rma_purchase: button cancel 2023-02-20 20:34:25 +01:00
DavidJForgeFlow
878e64e614 [IMP] rma: cancel rma_lines 2023-02-20 20:33:06 +01:00
Lois Rilo
79e9addf6a Merge pull request #365 from ForgeFlow/15.0-fp-364
[15.0][FIX] rma_sale: description not passed to SO
2023-02-15 09:31:44 +01:00
AaronHForgeFlow
3f913d6fab [IMP] rma_account: pre-commit, context overridden using dict. Better using kwargs 2023-02-14 17:48:24 +01:00
AaronHForgeFlow
009d8951c6 [14.0][FIX] rma_account: reconcile GDNI when receiving but refund is expected 2023-02-14 17:48:24 +01:00
AaronHForgeFlow
ee57f82ad2 [14.0][FIX] rma_sale: compatibility with refunds free of charge 2023-02-14 17:48:24 +01:00
Lois Rilo
e42e56b334 Merge pull request #375 from ForgeFlow/15.0-fp-373
[15.0][FIX] rma_sale: duplicate SO also link rma
2023-02-13 09:52:09 +01:00
DavidJForgeFlow
6ea3b66ef5 [14.0][FIX] rma_sale: duplicate SO also link rma 2023-02-13 09:30:24 +01:00
Lois Rilo
2c8efe660a Merge pull request #370 from ForgeFlow/15.0-fp-367
[15.0][FIX] rma: add stock move in supplier group
2023-02-08 13:49:33 +01:00
Pablo Esteban
5a56fdcb9f [15.0][FIX] Update pre-commit copier to fix isort 2023-02-02 08:50:14 +01:00
DavidJForgeFlow
cabb2a80d4 [14.0][FIX] rma: add stock move in supplier group 2023-02-01 13:55:40 +01:00
DavidJForgeFlow
6faf565757 [14.0][FIX] rma_sale: description not passed to SO 2023-01-27 11:57:32 +01:00
Lois Rilo
2b38b90c98 Merge pull request #361 from ForgeFlow/15.0-fp-359
[15.0][IMP] rma: rma groups improvements (add description, clean views, add lots to reports)
2023-01-09 17:09:46 +01:00
Lois Rilo
ef1b1ba576 [FIX] rma: remove "Add new line" in RMA group.
This was not the intended way to add RMA lines to a group.
Users are supposed to use the wizards to do so (add from stock
move, add from serial, etc.). Having the option to use "add
new line" was only leading to errors and confusion.
2023-01-09 17:07:41 +01:00
Lois Rilo
dbc616f12b [IMP] rma: print serial/lot number in RMA group report 2023-01-09 17:07:41 +01:00
Lois Rilo
25158ec25d [IMP] rma: order by id desc 2023-01-09 17:07:41 +01:00
Lois Rilo
c9b7924114 [IMP] rma_purchase: copy group description to rma lines 2023-01-09 16:57:31 +01:00