Commit Graph

193 Commits

Author SHA1 Message Date
Aaron ForgeFlow
e60e71e58a Merge pull request #539 from akretion/16-propagate-cancel-mutliple-step-rma-line
[16][IMP] rma : propagate cancelation
2024-10-22 17:56:04 +02:00
DavidJForgeFlow
f0274a593b [FIX] rma: fix action that opens related RMA or RTV. 2024-09-30 11:46:08 +02:00
Florian da Costa
f05e4037f2 [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-09-26 11:30:32 +02:00
Christopher Ormaza
44a36694df [16.0][FIX] rma, change filter of moves to allow select pickings with children of partner selected 2024-09-20 15:09:05 +02:00
Florian da Costa
2af11be8b7 [IMP] rma : add index on stock_move.rma_line_id 2024-09-20 15:07:58 +02:00
AaronHForgeFlow
2e9bf62646 [FIX] rma: inventory user by default should not see RMAs 2024-08-27 17:09:42 +02:00
DavidJForgeFlow
7061e995dd [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-07-08 12:20:53 +02:00
Aaron ForgeFlow
758a2a7d3f Merge pull request #492 from ForgeFlow/16.0-imp-rma-autocalculate_package
[16.0][IMP] rma: Auto-calculate package for serial products
2024-05-08 16:26:16 +02:00
chafique.delli
c683e32b34 [16.0][IMP] rma: rma group state 2024-04-16 09:42:56 +02:00
BernatPForgeFlow
e43156e027 [FIX] rma: Do not set 'Destination Package' if RMA package comes from 'Customers' location 2024-01-09 13:22:26 +01:00
Christopher Ormaza
73b104175a [FIX] quants can be more than one on _gather function result 2024-01-09 12:55:35 +01:00
BernatPForgeFlow
38719ebf21 [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-01-09 12:54:17 +01:00
Florian da Costa
4034cd2687 [IMP] Remove domain from onchange method and put it in field view 2023-11-28 14:08:11 +00:00
Florian da Costa
03ecdff7c4 [FIX] Delete rma_picking_wizard_item on cascade to avoid failure 2023-11-28 10:58:57 +00:00
Jordi Ballester Alomar
334b86f947 Merge pull request #443 from ForgeFlow/16.0-mig-rma
[16.0][IMP] rma: add date to rma_order_line
2023-11-22 08:19:00 +01:00
Aaron ForgeFlow
d7b7ef6608 Merge pull request #469 from ForgeFlow/16.0-imp-default_operation_type_rma_group
[16.0][FWD][IMP] added default operation on rma group, easy setup before rma lines created
2023-11-21 16:46:11 +00:00
JordiMForgeFlow
11ae665692 [IMP] rma: mark RMA location as return location 2023-11-20 09:27:50 +00:00
AaronHForgeFlow
05257541b3 [FIX] rma: RMA location in the warehouse should not be inside stock 2023-11-17 13:48:15 +00:00
ChrisOForgeFlow
6fec4470d0 [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
2023-10-31 08:39:30 +01:00
SergiCForgeFlow
f1435fa3d8 [FIX] Restrict approval rights to RMA Manager 2023-10-27 20:25:51 +02:00
AaronHForgeFlow
17a44b1be9 [IMP] rma: date_rma in lines 2023-10-27 12:27:11 +02:00
DavidJForgeFlow
7a56d6381f [IMP] rma: add date to rma_order_line 2023-10-27 12:26:48 +02:00
Florian da Costa
b145d8a17b rma : Fix description size in rma order line view form 2023-10-27 12:14:24 +02:00
JordiMForgeFlow
4e29283872 [FIX] rma: correctly display fields in product category view 2023-10-10 10:18:02 +02:00
Jordi Ballester Alomar
a42f14292d Merge pull request #413 from ForgeFlow/16.0-fix-rma_sml_product_uom_qty
[16.0][FIX] rma: multiple fixes
2023-07-07 19:00:19 +02:00
Joan Sisquella
2feb96db80 [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:37 +02:00
DavidJForgeFlow
1ba883f01d [FIX] rma: get_move_rma dropship 2023-05-02 10:17:08 +02:00
DavidJForgeFlow
3ba3dc1f85 [FIX] rma: dropship from vendor as outgoing 2023-05-02 10:13:08 +02:00
DavidJForgeFlow
fc6cd2ff48 [FIX] rma: get all partner RMA 2023-05-02 09:32:46 +02:00
DavidJForgeFlow
c3f76bd73a [FIX] rma: some fixups 2023-04-03 13:46:19 +02:00
DavidJForgeFlow
decf9667bb [FIX] rma: make picking product_uom_qty 2023-03-09 18:19:17 +01:00
Lois Rilo
4961a2af36 Merge pull request #398 from ForgeFlow/16.0-fix-rma_refresh_deprecated
[16.0][FIX] rma: deprecated test warning fix
2023-03-06 15:07:39 +01:00
DavidJForgeFlow
621e5d4ec1 [FIX] rma: product_uom_qty not in move_line_ids 2023-03-03 17:00:11 +01:00
DavidJForgeFlow
71d790175a [16.0][FIX] rma: return of button done 2023-02-22 15:33:49 +01:00
DavidJForgeFlow
f64804dfed [FIX] rma: deprecated test warning fix 2023-02-22 15:25:47 +01:00
Lois Rilo
fac5d7876c Merge pull request #389 from ForgeFlow/16.0-fp-376
[16.0][IMP] rma: cancel rma_lines
2023-02-22 15:25:06 +01:00
DavidJForgeFlow
7a88abb7f4 [IMP] rma: limit state statusbar 2023-02-22 11:10:02 +01:00
Lois Rilo
37088edc47 [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:06:38 +01:00
Lois Rilo
54ebbedf83 Merge pull request #372 from ForgeFlow/16.0-fp-367
[16.0][FIX] rma: add stock move in supplier group
2023-02-21 14:51:35 +01:00
DavidJForgeFlow
341fe67390 [IMP] rma: cancel rma_lines 2023-02-20 20:43:41 +01:00
Lois Rilo
41541b4f10 Merge pull request #339 from akretion/16.0-fix-migration
[16][FIX] rma: Refactor onchange fields to computed fields (partial)
2023-02-17 09:39:26 +01:00
Florian da Costa
71df4774e8 [FIX] Move some field from onchange to compute fields to avoid issues in views 2023-02-17 09:29:11 +01:00
DavidJForgeFlow
00730ce592 [14.0][FIX] rma: add stock move in supplier group 2023-02-10 11:52:42 +01:00
Lois Rilo
88cf15ffba [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:19:51 +01:00
Lois Rilo
b15c796dcb [IMP] rma: print serial/lot number in RMA group report 2023-01-09 17:19:43 +01:00
Lois Rilo
76f57a08c9 [IMP] rma: order by id desc 2023-01-09 17:19:34 +01:00
Lois Rilo
79e1c5c2eb [IMP] rma: add description to rma order and copy it over to new lines 2023-01-09 17:19:24 +01:00
Lois Rilo
15f5819a8f [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.
2023-01-09 17:19:13 +01:00
Lois Rilo
c975fb1464 [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.
2023-01-02 08:55:59 +01:00
Florian da Costa
f3958f33fc [FIX] count produced products going to customer as out pickings 2022-12-27 17:32:41 +01:00