Commit Graph

41 Commits

Author SHA1 Message Date
AaronHForgeFlow
ffd76ca5db [FIX] rma: vendor rma lot mnmg 2024-11-27 09:17:24 +05:30
BernatPForgeFlow
2c4c3c5633 [FIX] rma: Do not set 'Destination Package' if RMA package comes from 'Customers' location 2024-11-27 09:17:24 +05:30
Christopher Ormaza
324e3f49be [FIX] quants can be more than one on _gather function result 2024-11-27 09:17:24 +05:30
BernatPForgeFlow
24d83b966c [IMP] rma: Auto-calculate package for serial products
When returning or delivering a serial product from a RMA, we will calculate by default its package. Later, it can be modyfied by the user.
2024-11-27 09:17:24 +05:30
AaronHForgeFlow
b796ffdfc1 [FIX] rma: lot reservation error:
qty_done -> quantity
reserved_qty field does no exist anymore
2024-11-27 09:17:24 +05:30
Carlos Vallés Fuster
47232437ff [MIG] rma: Migration to v17 2024-11-27 09:17:24 +05:30
AaronHForgeFlow
b33bed17c2 [IMP] rma: black, isort, prettier 2024-11-27 09:17:24 +05:30
Florian da Costa
fbf2881b76 [FIX] Delete rma_picking_wizard_item on cascade to avoid failure 2024-11-22 13:12:57 +05:30
Joan Sisquella
90826cb1ae [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-11-22 13:12:57 +05:30
DavidJForgeFlow
ef1ab18b3b [FIX] rma: dropship from vendor as outgoing 2024-11-22 13:12:57 +05:30
DavidJForgeFlow
b881a4654e [FIX] rma: make picking product_uom_qty 2024-11-22 13:12:57 +05:30
DavidJForgeFlow
ef4eaaa4a1 [FIX] rma: product_uom_qty not in move_line_ids 2024-11-22 13:12:57 +05:30
Lois Rilo
921967c219 [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).
2024-11-22 13:12:57 +05:30
Florian da Costa
5f9c24bb85 [16.0][MIG] Migrate rma module to v16 2024-11-22 13:12:57 +05:30
DavidJForgeFlow
9fe81f732b [15.0][FIX] rma_sale: fixup of procurement 2024-11-22 13:12:57 +05:30
Stefan Rijnhart
63853327a9 [IMP] rma: prevent the creation of zero qty moves 2024-11-22 13:12:57 +05:30
Stefan Rijnhart
910c29a36e [FIX] rma: improve check on rule selection during procurement
Fixes #274

Thanks to @florian-dacosta for suggesting this approach.
2024-11-22 13:12:57 +05:30
Stefan Rijnhart
4133bc5d3b [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-11-22 13:12:57 +05:30
Florian da Costa
99cf5f2a2d [FIX] Remove useless/bad wiz_id field in rma_make_picking.wizard item preparation 2024-11-22 13:12:57 +05:30
Lois Rilo
2c01d28d87 [FIX] rma: do not force reservation on supplier RMA deliveries
* remove code call to unexisting `force_asign`.
* only one model per model file and rename as appropriate.
2024-11-22 13:12:57 +05:30
Christopher Ormaza
69b4734e1b [FIX] rma: add lot to pickings created from wizard on RMA lines 2024-11-22 13:12:57 +05:30
Jasmin Solanki
99bd47ccf9 [MIG] rma: Migration to 15.0 2024-11-22 13:12:57 +05:30
Mateu Griful
6d8f2be4e1 [MIG] rma: Migration to 14.0 - fix 2024-11-22 13:12:57 +05:30
Mateu Griful
fcd5565064 [MIG] rma: Migration to 14.0 - fix 2024-11-22 13:12:57 +05:30
hveficent
958f023215 RMA as an APP 2024-11-22 13:12:57 +05:30
ahenriquez
2a42cc17ff [MIG] rma: Migration to 13.0 2024-11-22 13:12:57 +05:30
ahenriquez
d321342e8f [IMP] : black, isort 2024-11-22 13:12:57 +05:30
mreficent
ad560a9d6a [FIX] default_gets: avoid using shadowname 'fields' 2024-11-22 13:12:57 +05:30
Adrià Gil Sorribes
f2905186e4 [12.0][MIG] Migrate rma module to v12.0 2024-11-22 13:12:57 +05:30
aheficent
382de6b00f [MIG]rma v110.0.2.0.0 2024-11-22 13:12:57 +05:30
Bhavesh Odedra
f397a06209 [FIX] TypeError: unhashable type: 'list' 2024-11-22 13:12:57 +05:30
Jordi Ballester
2006a3ced8 multiple fixes 2024-11-22 13:12:57 +05:30
Maxime Chambreuil
c239f915b0 [FIX] Errors from tests 2024-11-22 13:12:57 +05:30
Maxime Chambreuil
84c609f9a2 [MIG] Migrate configuration and cleanup 2024-11-22 13:12:57 +05:30
Maxime Chambreuil
6357363a91 [FIX] Permissions and remove (en)coding 2024-11-22 13:12:57 +05:30
Bhavesh Odedra
876c8cdac0 [11.0] MIG: RMA module 2024-11-22 13:12:57 +05:30
Nikul Chaudhary
70a4bb152a [IMP] Improved Unit Test Case and Fixed Travis 2024-11-22 13:12:57 +05:30
aheficent
c3e4bb75eb [MIG]rma v10 2024-11-22 13:12:57 +05:30
lreficent
5c8b6c03d5 [9.0][REW] rma: workflow centralized on rma.order.line and the use of rma.order is optional. 2024-11-22 13:12:57 +05:30
lreficent
81d0c4a724 [9.0][FIX] rma:
* fix assignment of moves.
* default qty in rma lines.
* remove account dependency.
* test and flake8 fixes.
2024-11-22 13:12:57 +05:30
Jordi Ballester
eaea056686 init branch 2024-11-22 13:12:57 +05:30