Commit Graph

191 Commits

Author SHA1 Message Date
JasminSForgeFlow
e1179b8529 [MIG] rma: Migration to 18.0 2024-11-27 10:52:50 +05:30
Florian da Costa
306acd47e3 [IMP] rma : propagate cancelation
When canceling a rma order line, it will also cancel the previous (orig) steps.
Following steps (dest) can be managed with the propagate cancel option of the stock rules.
This commit also avoid canceling a whole picking which is problematic in case of the use of RMA groups
2024-11-27 09:17:24 +05:30
DavidJForgeFlow
bcdd025af1 [FIX] rma: fix action that opens related RMA or RTV. 2024-11-27 09:17:24 +05:30
AaronHForgeFlow
9e002eee18 [IMP] rma: adapt icon to v17 2024-11-27 09:17:24 +05:30
AaronHForgeFlow
ffd76ca5db [FIX] rma: vendor rma lot mnmg 2024-11-27 09:17:24 +05:30
AaronHForgeFlow
acb94ec152 [FIX] rma: inventory user by default should not see RMAs 2024-11-27 09:17:24 +05:30
DavidJForgeFlow
70bcf9681e [IMP] rma: add rma_line_id to stock.move views
When looking at stock moves created from a rma group, it may be confusing knowing who's move is for which RMA line. This improvement should avoid these confusions.
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
6955621f32 [16][FIX] rma: make date_rma stored once again on rma_order 2024-11-27 09:17:24 +05:30
chafique.delli
c29d26fdba [16.0][IMP] rma: rma group state 2024-11-22 13:12:57 +05:30
Florian da Costa
cd46134010 [IMP] Remove domain from onchange method and put it in field view 2024-11-22 13:12:57 +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
JordiMForgeFlow
01bb5f3285 [IMP] rma: mark RMA location as return location 2024-11-22 13:12:57 +05:30
AaronHForgeFlow
911aaae7a4 [FIX] rma: RMA location in the warehouse should not be inside stock 2024-11-22 13:12:57 +05:30
ChrisOForgeFlow
7d979ebc60 [14.0][IMP] added default operation on rma group, easy setup before rma lines created (#452)
* [14.0][IMP] added default operation on rma group, easy setup before rma lines created

* [IMP] added fields for default route created by wizard on rma group

* fix: get right price after create rma order line
2024-11-22 13:12:57 +05:30
SergiCForgeFlow
f8879a51ac [FIX] Restrict approval rights to RMA Manager 2024-11-22 13:12:57 +05:30
AaronHForgeFlow
c0c737f420 [IMP] rma: date_rma in lines 2024-11-22 13:12:57 +05:30
DavidJForgeFlow
537362612a [IMP] rma: add date to rma_order_line 2024-11-22 13:12:57 +05:30
Florian da Costa
3bc2352ba6 rma : Fix description size in rma order line view form 2024-11-22 13:12:57 +05:30
JordiMForgeFlow
856dca3e52 [FIX] rma: correctly display fields in product category view 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
98f93df70e [FIX] rma: get_move_rma dropship 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
79479530d9 [FIX] rma: get all partner RMA 2024-11-22 13:12:57 +05:30
DavidJForgeFlow
fedfb1fefc [FIX] rma: some fixups 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
DavidJForgeFlow
ed4428fc11 [16.0][FIX] rma: return of button done 2024-11-22 13:12:57 +05:30
DavidJForgeFlow
b16e4c21fb [FIX] rma: deprecated test warning fix 2024-11-22 13:12:57 +05:30
DavidJForgeFlow
c927e4cc4b [IMP] rma: limit state statusbar 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
DavidJForgeFlow
6f67fdd2b1 [IMP] rma: cancel rma_lines 2024-11-22 13:12:57 +05:30
Florian da Costa
dcb08db582 [FIX] Move some field from onchange to compute fields to avoid issues in views 2024-11-22 13:12:57 +05:30
DavidJForgeFlow
7cffb3fa65 [14.0][FIX] rma: add stock move in supplier group 2024-11-22 13:12:57 +05:30
Lois Rilo
8627a1e647 [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.
2024-11-22 13:12:57 +05:30
Lois Rilo
7855f13c5d [IMP] rma: print serial/lot number in RMA group report 2024-11-22 13:12:57 +05:30
Lois Rilo
87eed78a2c [IMP] rma: order by id desc 2024-11-22 13:12:57 +05:30
Lois Rilo
fd2d1d03b5 [IMP] rma: add description to rma order and copy it over to new lines 2024-11-22 13:12:57 +05:30
Lois Rilo
4efbe70673 [IMP] rma: rma group supplier form view as a inherited view.
The goal is to simplify view defintion and do not duplicate
things, requiring to do view changes in two places.

The same change was done from rma lines some time ago.
2024-11-22 13:12:57 +05:30
Lois Rilo
4e33e3ad8e [FIX] rma: Ensure that configuration on the operation is applied
Without this, some policies are not being copied from the
operation selected when creating new rma line from a rma group.

In v16 this patch and the usage of such onchange can be removed
in favor of (pre)computed stored editable fields for all policies
and configuration in the RMA operation.
2024-11-22 13:12:57 +05:30
Florian da Costa
49ef892c98 [FIX] count produced products going to customer as out pickings 2024-11-22 13:12:57 +05:30
DavidJForgeFlow
8c584ba507 [14.0][IMP] rma: add lot/serial in report 2024-11-22 13:12:57 +05:30
AnnaPForgeFlow
060b513762 [IMP] rma: add translations 2024-11-22 13:12:57 +05:30
Jordi Ballester Alomar
19b145a69c [FIX] fix empty parter on rma picking 2024-11-22 13:12:57 +05:30
DavidJForgeFlow
1790be2d1e [14.0][IMP] rma: pass product in create lot 2024-11-22 13:12:57 +05:30