Commit Graph

27 Commits

Author SHA1 Message Date
Joan Sisquella
fad3ab7a79 [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 17:39:08 +02:00
Lois Rilo
30a8bfaeaa Merge pull request #272 from ForgeFlow/13.0-bp-269
[13.0][FIX]rma: remove test_rma dependency to Account
2022-12-27 09:13:16 +01:00
Stefan Rijnhart
cdafac7a61 [IMP] rma: prevent the creation of zero qty moves 2022-07-11 09:11:05 +02:00
DavidJForgeFlow
a875f0f67a [FIX]rma: remove test_rma dependency to Account 2022-06-28 09:30:28 +02:00
DavidFIB
cefbecca9e [FIX]rma: test05 fixed 2022-05-18 10:20:36 +02:00
Andrea
259d95da06 [13.0][FIX/IMP] Make RMA Operation settings company dependent 2022-05-17 17:36:02 +02:00
Jordi Ballester
741ac0052b [FIX] rma: compute out_shipment_count correctly. Add test cases 2022-02-08 09:36:59 +01:00
ahenriquez
f3c1a1c438 [MIG] rma: Migration to 13.0 2020-01-17 18:03:43 +01:00
ahenriquez
1ae40ec4d3 [IMP] : black, isort 2020-01-14 16:36:03 +01:00
mreficent
4de2559514 [FIX] tests 2020-01-14 16:35:27 +01:00
Adrià Gil Sorribes
4395bc3b1f [12.0][MIG] Migrate rma module to v12.0 2020-01-14 16:35:27 +01:00
aheficent
ddfe7d792d [FIX]rma test 2020-01-14 16:35:27 +01:00
aheficent
1dacdbb27a [FIX]views rma 2020-01-14 16:35:27 +01:00
Lois Rilo
3752ef111c [9.0][IMP] rma: tests moved to Savedpointcase and optimized (66% time reduction) 2020-01-14 16:35:27 +01:00
Jordi Ballester
e3de350b91 multiple fixes 2020-01-14 16:35:26 +01:00
Maxime Chambreuil
0f0558b88f [FIX] Errors from tests 2020-01-14 16:35:26 +01:00
Maxime Chambreuil
854d9ec537 [MIG] Migrate configuration and cleanup 2020-01-14 16:35:26 +01:00
Maxime Chambreuil
94135ff5fa [FIX] Permissions and remove (en)coding 2020-01-14 16:35:26 +01:00
Bhavesh Odedra
ae0a75499a [11.0] MIG: RMA module 2020-01-14 16:35:26 +01:00
Nikul Chaudhary
37abae957e [IMP] Improved Code. 2020-01-14 16:35:26 +01:00
Nikul Chaudhary
b60a0241d0 [MIG] Migrated UT & Fixed Travis 2020-01-14 16:35:26 +01:00
aheficent
60106ee601 [FIX]various fixes 2020-01-14 16:35:26 +01:00
Nikul Chaudhary
e161a9c57a [IMP] Improved Unit Test Case and Fixed Travis 2020-01-14 16:35:26 +01:00
aheficent
31ebd47872 [MIG]rma v10 2020-01-14 16:35:26 +01:00
aheficent
3551ce078a [IMP] default operation in product and product_categ for customer and supplier
[IMP]Separate menus for customer and supplier operations
* Add active field to rma operation
* Added tests
* Fix travis
* Fix create supplier rma from customer rma
2020-01-14 16:35:26 +01:00
lreficent
539be323ef [9.0][FIX] rma:
* fix assignment of moves.
* default qty in rma lines.
* remove account dependency.
* test and flake8 fixes.
2020-01-14 16:35:26 +01:00
Jordi Ballester
8939fc8c7a init branch 2020-01-14 16:35:26 +01:00