Commit Graph

41 Commits

Author SHA1 Message Date
Carlos Vallés Fuster
a73d695719 [MIG] rma: migration to 17.0
[IMP] rma: test fixes
2024-03-25 11:32:30 +01:00
CarlosVForgeFlow
56b82eff1a Revert "[17.0][MIG] rma" 2024-03-12 14:03:17 +01:00
Carlos Vallés Fuster
775b51915b [MIG] rma: Migration to 17.0 2024-03-12 09:41:16 +01:00
Carlos Vallés Fuster
46fa1f6283 [IMP] rma: pre-commit auto fixes 2024-03-06 08:32:41 +01:00
Joan Sisquella
23da1ccb94 [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.
2024-03-06 08:31:44 +01:00
DavidJForgeFlow
87214a6c22 [FIX] rma: deprecated test warning fix 2024-03-06 08:31:44 +01:00
Florian da Costa
0bb07d5e01 [16.0][MIG] Migrate rma module to v16 2024-03-06 08:31:44 +01:00
DavidJForgeFlow
d91868ff4d [15.0][FIX] rma_sale: fixup of procurement 2024-03-06 08:31:44 +01:00
Stefan Rijnhart
84ee05edcc [IMP] rma: prevent the creation of zero qty moves 2024-03-06 08:31:44 +01:00
DavidJForgeFlow
d3da7fe3cc [FIX]rma: remove test_rma dependency to Account 2024-03-06 08:31:44 +01:00
Stefan Rijnhart
5abc94ae3c [FIX] rma: prevent against warehouse mismatch or missing rules
When creating pickings, ensure that the applied stock rule was taken from
the operation's routes. Otherwise, the default procurement rules for a
warehouse may kick in, creating incoming customer goods not from the customer
location but from the resupply warehouse.
2024-03-06 08:31:44 +01:00
DavidFIB
c1052effb9 [14.0][FIX/IMP] Make RMA Operation settings company dependent 2024-03-06 08:31:44 +01:00
Andrea
80ea8e3c24 [13.0][FIX/IMP] Make RMA Operation settings company dependent 2024-03-06 08:31:44 +01:00
AaronHForgeFlow
55fdf4508a [15.0][IMP] Tests for stock valuation
[FIX] rma: rma_custmer_user has no write permissions in partner, so compute method fails.
[IMP] rma: use rma user in tests
[FIX] rma_account: move_line_id field string
[IMP] rma, rma_account, rma_sale, rma_purchase: tests for stock valuation
[FIX] account_move_line_rma_order_line: minor lint, make auto-install
2024-03-06 08:31:44 +01:00
AaronHForgeFlow
329887509c [IMP] COPIER UPDATE: black, isort, prettier 2024-03-06 08:31:44 +01:00
Jordi Ballester
3c8c4e92a0 [FIX] rma: compute out_shipment_count correctly. Add test cases 2024-03-06 08:31:44 +01:00
Jasmin Solanki
79816ca944 [MIG] rma: Migration to 15.0 2024-03-06 08:31:44 +01:00
Mateu Griful
6b773e8e46 [MIG] rma_account: Migration to 14.0 2024-03-06 08:31:44 +01:00
Mateu Griful
28fcd8efbe [MIG] rma: Migration to 14.0 - fix 2024-03-06 08:31:44 +01:00
Mateu Griful
3efe41ed86 [MIG] rma: Migration to 14.0 - fix 2024-03-06 08:31:44 +01:00
Mateu Griful
5c61813584 [MIG] rma: Migration to 14.0 2024-03-06 08:31:44 +01:00
ahenriquez
d2d7487fee [MIG] rma: Migration to 13.0 2024-03-06 08:31:44 +01:00
ahenriquez
c7720d32f0 [IMP] : black, isort 2024-03-06 08:31:44 +01:00
mreficent
a1887b5872 [FIX] tests 2024-03-06 08:31:44 +01:00
Adrià Gil Sorribes
3dc6c67542 [12.0][MIG] Migrate rma module to v12.0 2024-03-06 08:31:44 +01:00
aheficent
6bd7072122 [FIX]rma test 2024-03-06 08:31:44 +01:00
aheficent
361c7ad31a [FIX]views rma 2024-03-06 08:31:44 +01:00
Lois Rilo
6e9092a277 [9.0][IMP] rma: tests moved to Savedpointcase and optimized (66% time reduction) 2024-03-06 08:31:44 +01:00
Jordi Ballester
216891b1a9 multiple fixes 2024-03-06 08:31:44 +01:00
Maxime Chambreuil
3367ce78e4 [FIX] Errors from tests 2024-03-06 08:31:44 +01:00
Maxime Chambreuil
0844d0cebd [MIG] Migrate configuration and cleanup 2024-03-06 08:31:44 +01:00
Maxime Chambreuil
5bfa9d1323 [FIX] Permissions and remove (en)coding 2024-03-06 08:31:44 +01:00
Bhavesh Odedra
c663cd2db2 [11.0] MIG: RMA module 2024-03-06 08:31:44 +01:00
Nikul Chaudhary
66f741001d [IMP] Improved Code. 2024-03-06 08:31:44 +01:00
Nikul Chaudhary
4bf794bb1c [MIG] Migrated UT & Fixed Travis 2024-03-06 08:31:44 +01:00
aheficent
4096024e0e [FIX]various fixes 2024-03-06 08:31:44 +01:00
Nikul Chaudhary
5ea392345a [IMP] Improved Unit Test Case and Fixed Travis 2024-03-06 08:31:44 +01:00
aheficent
ae8548d234 [MIG]rma v10 2024-03-06 08:31:44 +01:00
aheficent
80a6b0afd2 [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
2024-03-06 08:31:44 +01:00
lreficent
3139292069 [9.0][FIX] rma:
* fix assignment of moves.
* default qty in rma lines.
* remove account dependency.
* test and flake8 fixes.
2024-03-06 08:31:44 +01:00
Jordi Ballester
8088c3a829 init branch 2024-03-06 08:31:44 +01:00