Commit Graph

201 Commits

Author SHA1 Message Date
Maxime Chambreuil
2affd2d12a [MIG] Migrate configuration and cleanup 2024-03-25 12:50:16 +01:00
aheficent
afcab2624d [FIX]compute qty to sell 2024-03-25 12:50:16 +01:00
Nikul Chaudhary
a83d5a9170 [FIX] Fixed UT & Travis 2024-03-25 12:50:16 +01:00
Nikul Chaudhary
b3a88eb717 [IMP] Improved Code. 2024-03-25 12:50:16 +01:00
Nikul Chaudhary
60696be93c [MIG] Migrated UT & Fixed Travis 2024-03-25 12:50:16 +01:00
aheficent
d87b270651 [FIX]various fixes 2024-03-25 12:50:16 +01:00
Nikul Chaudhary
8e1c0e6542 [IMP] Improved Unit Test Case and Fixed Travis 2024-03-25 12:50:16 +01:00
aheficent
1bc5b3309f [MIG]rma_sale to v10 2024-03-25 12:50:16 +01:00
lreficent
96687c54b7 [9.0][IMP] rma: add link to source SO and PO 2024-03-25 12:50:16 +01:00
lreficent
4f0d1a2412 [FIX] allow child partners too 2024-03-25 12:50:16 +01:00
lreficent
f87ddf04a5 [9.0][IMP] rma_sale: allow to search by order reference 2024-03-25 12:50:16 +01:00
lreficent
4ec9cb8534 fix rma_sale 2024-03-25 12:50:16 +01:00
lreficent
c8875b4554 [9.0][FIX] wizards need to specify partner. 2024-03-25 12:50:16 +01:00
lreficent
5bf7fd583f [9.0][REW] rma_sale: adapt 2024-03-25 12:50:16 +01:00
lreficent
32cc6e80f2 [9.0][FIX] rma_sale: product might be changed when creating SO from RMA. 2024-03-25 12:50:16 +01:00
lreficent
0e492a0c9c [9.0][FIX] rma_sale: wrong domain 2024-03-25 12:50:16 +01:00
lreficent
5a683212e0 [9.0][IMP] rma_sale:
* simplify actgion_view methods.
* remove unneded copy and ondelete attributes.
* Fix wizard to add rma lines from SO.
* Update README and some strings.
2024-03-25 12:50:16 +01:00
lreficent
be927f53b0 [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-03-25 12:50:16 +01:00
lreficent
c029d2161c [9.0][FIX]
* rma: receipt_policy selections not matching.
* rma_sale: fix _prepare_rma_line_from_sale_order_line.
2024-03-25 12:50:16 +01:00
aheficent
293fae06a4 [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-25 12:50:16 +01:00
lreficent
3d855f2e35 [9.0][FIX] rma:
* fix assignment of moves.
* default qty in rma lines.
* remove account dependency.
* test and flake8 fixes.
2024-03-25 12:50:16 +01:00
Jordi Ballester
a70b72f093 init branch 2024-03-25 12:50:16 +01:00
CarlosVForgeFlow
4c64b8e6b2 Merge pull request #500 from ForgeFlow/revert-483-17.0-mig-rma
Revert "[17.0][MIG] rma"
2024-03-12 15:00:04 +01:00
CarlosVForgeFlow
56b82eff1a Revert "[17.0][MIG] rma" 2024-03-12 14:03:17 +01:00
CarlosVForgeFlow
af4f57a211 Merge pull request #483 from ForgeFlow/17.0-mig-rma
[17.0][MIG] rma
2024-03-12 14:03:06 +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
Florian da Costa
f4577808ab [IMP] Remove domain from onchange method and put it in field view 2024-03-06 08:31:44 +01:00
Florian da Costa
b9f0b7a60d [FIX] Delete rma_picking_wizard_item on cascade to avoid failure 2024-03-06 08:31:44 +01:00
JordiMForgeFlow
338c2f8369 [IMP] rma: mark RMA location as return location 2024-03-06 08:31:44 +01:00
AaronHForgeFlow
8df45b0fe2 [FIX] rma: RMA location in the warehouse should not be inside stock 2024-03-06 08:31:44 +01:00
ChrisOForgeFlow
8e5b21126b [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-03-06 08:31:44 +01:00
SergiCForgeFlow
1d71d2862e [FIX] Restrict approval rights to RMA Manager 2024-03-06 08:31:44 +01:00
AaronHForgeFlow
fe1bcddd74 [IMP] rma: date_rma in lines 2024-03-06 08:31:44 +01:00
DavidJForgeFlow
ee0d1fda11 [IMP] rma: add date to rma_order_line 2024-03-06 08:31:44 +01:00
Florian da Costa
5ee74fda13 rma : Fix description size in rma order line view form 2024-03-06 08:31:44 +01:00
JordiMForgeFlow
91fec438b9 [FIX] rma: correctly display fields in product category view 2024-03-06 08:31:44 +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
eee6edcc2f [FIX] rma: get_move_rma dropship 2024-03-06 08:31:44 +01:00
DavidJForgeFlow
0fa5fa17b0 [FIX] rma: dropship from vendor as outgoing 2024-03-06 08:31:44 +01:00
DavidJForgeFlow
a2e03f1c26 [FIX] rma: get all partner RMA 2024-03-06 08:31:44 +01:00
DavidJForgeFlow
92c591f330 [FIX] rma: some fixups 2024-03-06 08:31:44 +01:00
DavidJForgeFlow
010bdc5070 [FIX] rma: make picking product_uom_qty 2024-03-06 08:31:44 +01:00
DavidJForgeFlow
0422852a88 [FIX] rma: product_uom_qty not in move_line_ids 2024-03-06 08:31:44 +01:00
DavidJForgeFlow
b67ac1748c [16.0][FIX] rma: return of button done 2024-03-06 08:31:44 +01:00
DavidJForgeFlow
87214a6c22 [FIX] rma: deprecated test warning fix 2024-03-06 08:31:44 +01:00
DavidJForgeFlow
391aaa8f93 [IMP] rma: limit state statusbar 2024-03-06 08:31:44 +01:00
Lois Rilo
2a5952e147 [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-03-06 08:31:44 +01:00
DavidJForgeFlow
4dabdbac2c [IMP] rma: cancel rma_lines 2024-03-06 08:31:44 +01:00
Florian da Costa
2989ff7bf6 [FIX] Move some field from onchange to compute fields to avoid issues in views 2024-03-06 08:31:44 +01:00