Commit Graph

201 Commits

Author SHA1 Message Date
Maxime Chambreuil
70fb792dad [MIG] Migrate configuration and cleanup 2024-08-08 10:49:38 +02:00
Nikul Chaudhary
8044e22790 [MIG] Migrated UT & Fixed Travis 2024-08-08 10:49:38 +02:00
aheficent
2cf15a95a1 [FIX]various fixes 2024-08-08 10:49:38 +02:00
Nikul Chaudhary
442e5d7a76 [IMP] Improved Unit Test Case and Fixed Travis 2024-08-08 10:49:38 +02:00
aheficent
d252c25d52 [MIG]rma account v10 2024-08-08 10:49:38 +02:00
lreficent
5f4d0c1d37 [FIX] allow child partners too 2024-08-08 10:49:38 +02:00
lreficent
9494b01d60 [9.0][FIX] rma_account: refund wizard 2024-08-08 10:49:38 +02:00
lreficent
c29ea6edbf [9.0][FIX] wizards need to specify partner. 2024-08-08 10:49:38 +02:00
lreficent
011747cda7 [9.0][IMP] rma: add constrains 2024-08-08 10:49:38 +02:00
lreficent
15808b5efe [9.0][REW] rma_account: adapt. 2024-08-08 10:49:38 +02:00
lreficent
66adb747a7 pylint 2024-08-08 10:49:38 +02:00
lreficent
d1d9aff165 [9.0][IMP] rma_account:
* remove unneded copy attributes.
* simplify action_view methods.
* fix wrong naming.
* fix misplaced views.
* fix wrong count and view actions for rma.orders in invoices.
* fix error when installing the module.
* remove unneded data update when preparing rma lines from invoice lines.
* minor extra fixes.
2024-08-08 10:49:38 +02:00
aheficent
4e1c75edaa [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-08-08 10:49:38 +02:00
lreficent
abe2343774 [9.0][FIX] rma:
* fix assignment of moves.
* default qty in rma lines.
* remove account dependency.
* test and flake8 fixes.
2024-08-08 10:49:38 +02:00
Jordi Ballester
377bdeeed7 init branch 2024-08-08 10:49:38 +02:00
Aaron ForgeFlow
82f9022330 Merge pull request #512 from ForgeFlow/17.0-mig-rma-good
[17.0][MIG] rma
2024-08-08 10:47:30 +02:00
AaronHForgeFlow
2ac6255746 [IMP] rma: adapt icon to v17 2024-08-07 17:20:40 +02:00
AaronHForgeFlow
2c9a213677 [FIX] rma: vendor rma lot mnmg 2024-07-12 10:47:57 +02:00
AaronHForgeFlow
7dfa4251df [FIX] rma: inventory user by default should not see RMAs 2024-07-08 17:25:15 +02:00
DavidJForgeFlow
8c16ce79ea [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 17:10:16 +02:00
BernatPForgeFlow
6fab740b56 [FIX] rma: Do not set 'Destination Package' if RMA package comes from 'Customers' location 2024-05-08 16:36:41 +02:00
Christopher Ormaza
ab02ca6b36 [FIX] quants can be more than one on _gather function result 2024-05-08 16:32:41 +02:00
BernatPForgeFlow
3dfec266fd [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-05-08 16:32:30 +02:00
AaronHForgeFlow
96b6024bc6 [FIX] rma: lot reservation error:
qty_done -> quantity
reserved_qty field does no exist anymore
2024-05-06 18:32:54 +02:00
Carlos Vallés Fuster
cb5a8a1ddd [MIG] rma: Migration to v17 2024-05-06 17:08:34 +02:00
AaronHForgeFlow
e23335cee5 [IMP] rma: black, isort, prettier 2024-05-06 17:08:10 +02:00
chafique.delli
9e74dedb9a [16.0][IMP] rma: rma group state 2024-05-06 17:07:50 +02:00
Florian da Costa
6c67346b08 [IMP] Remove domain from onchange method and put it in field view 2024-05-06 17:07:50 +02:00
Florian da Costa
9956118af7 [FIX] Delete rma_picking_wizard_item on cascade to avoid failure 2024-05-06 17:07:50 +02:00
JordiMForgeFlow
35345a99a5 [IMP] rma: mark RMA location as return location 2024-05-06 17:07:50 +02:00
AaronHForgeFlow
b0f89825cb [FIX] rma: RMA location in the warehouse should not be inside stock 2024-05-06 17:07:50 +02:00
ChrisOForgeFlow
608f2910dc [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-05-06 17:07:50 +02:00
SergiCForgeFlow
efc2681881 [FIX] Restrict approval rights to RMA Manager 2024-05-06 17:07:50 +02:00
AaronHForgeFlow
b3047b0cd3 [IMP] rma: date_rma in lines 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
d312c8cd01 [IMP] rma: add date to rma_order_line 2024-05-06 17:07:50 +02:00
Florian da Costa
b4ff6c45dc rma : Fix description size in rma order line view form 2024-05-06 17:07:50 +02:00
JordiMForgeFlow
d3c75edaab [FIX] rma: correctly display fields in product category view 2024-05-06 17:07:50 +02:00
Joan Sisquella
ecb63ea8c4 [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-05-06 17:07:50 +02:00
DavidJForgeFlow
e4f6e7ba64 [FIX] rma: get_move_rma dropship 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
0667f3a146 [FIX] rma: dropship from vendor as outgoing 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
f615ca7436 [FIX] rma: get all partner RMA 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
60d770b208 [FIX] rma: some fixups 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
e601c198ba [FIX] rma: make picking product_uom_qty 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
8497049155 [FIX] rma: product_uom_qty not in move_line_ids 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
32c17b1dbf [16.0][FIX] rma: return of button done 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
a2fd5ae550 [FIX] rma: deprecated test warning fix 2024-05-06 17:07:50 +02:00
DavidJForgeFlow
7a74cc250e [IMP] rma: limit state statusbar 2024-05-06 17:07:50 +02:00
Lois Rilo
1dd8eb10c0 [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-05-06 17:07:50 +02:00
DavidJForgeFlow
fb683c9aa5 [IMP] rma: cancel rma_lines 2024-05-06 17:07:50 +02:00
Florian da Costa
4fe10d788c [FIX] Move some field from onchange to compute fields to avoid issues in views 2024-05-06 17:07:50 +02:00