Commit Graph

299 Commits

Author SHA1 Message Date
Lois Rilo
7b954690a7 [9.0] rma_sale: adapt constraint to view domain 2023-07-07 17:28:37 +02:00
aaron
8b1830371f [FIX]reverting changes applied to v11 2023-07-07 17:28:37 +02:00
Lois Rilo
640d2139ac [FIX] tests 2023-07-07 17:28:37 +02:00
Maxime Chambreuil
5fda7f55dc [MIG] Migrate configuration and cleanup 2023-07-07 17:28:37 +02:00
aheficent
88dd0cc1ba [FIX]compute qty to sell 2023-07-07 17:28:37 +02:00
Nikul Chaudhary
ab56be6b80 [FIX] Fixed UT & Travis 2023-07-07 17:28:37 +02:00
Nikul Chaudhary
fe7b94a3c9 [IMP] Improved Code. 2023-07-07 17:28:37 +02:00
Nikul Chaudhary
c9d85ad4b5 [MIG] Migrated UT & Fixed Travis 2023-07-07 17:28:37 +02:00
aheficent
3527cd54f9 [FIX]various fixes 2023-07-07 17:28:37 +02:00
Nikul Chaudhary
01be7818f7 [IMP] Improved Unit Test Case and Fixed Travis 2023-07-07 17:28:37 +02:00
aheficent
1eb2a2168d [MIG]rma_sale to v10 2023-07-07 17:28:37 +02:00
lreficent
ed0fc49a33 [9.0][IMP] rma: add link to source SO and PO 2023-07-07 17:28:37 +02:00
lreficent
0fdcce9ed4 [FIX] allow child partners too 2023-07-07 17:28:37 +02:00
lreficent
0bc701feb0 [9.0][IMP] rma_sale: allow to search by order reference 2023-07-07 17:28:37 +02:00
lreficent
d59736d167 fix rma_sale 2023-07-07 17:28:37 +02:00
lreficent
c8ad7ce1ca [9.0][FIX] wizards need to specify partner. 2023-07-07 17:28:37 +02:00
lreficent
4764520a62 [9.0][REW] rma_sale: adapt 2023-07-07 17:28:37 +02:00
lreficent
a7c2097985 [9.0][FIX] rma_sale: product might be changed when creating SO from RMA. 2023-07-07 17:28:37 +02:00
lreficent
52bcea298c [9.0][FIX] rma_sale: wrong domain 2023-07-07 17:28:37 +02:00
lreficent
444669ced6 [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.
2023-07-07 17:28:37 +02:00
lreficent
65826d753b [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.
2023-07-07 17:28:37 +02:00
lreficent
7ba2f20ce1 [9.0][FIX]
* rma: receipt_policy selections not matching.
* rma_sale: fix _prepare_rma_line_from_sale_order_line.
2023-07-07 17:28:37 +02:00
aheficent
f20d100511 [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
2023-07-07 17:28:37 +02:00
lreficent
fc7571ec6a [9.0][FIX] rma:
* fix assignment of moves.
* default qty in rma lines.
* remove account dependency.
* test and flake8 fixes.
2023-07-07 17:28:37 +02:00
Jordi Ballester
40d308f3d4 init branch 2023-07-07 17:28:37 +02:00
Jordi Ballester Alomar
a5573378f9 Merge pull request #397 from ForgeFlow/16.0-mig-rma_account
[16.0][MIG] rma_account
2023-07-07 17:24:43 +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
Jordi Ballester Alomar
b1da491476 [IMP] rma_account: add index in account.move.line to field 'rma_line_id' 2023-04-17 11:59:09 +02:00
DavidJForgeFlow
f07c5f2e85 [MIG] rma_account: Migration to 16.0 2023-04-17 11:59:02 +02: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
Lois Rilo
c92181c5db Merge pull request #412 from ForgeFlow/16.0-fix-rma
[16.0][FIX] rma: product_uom_qty not in move_line_ids
2023-03-06 15:02:37 +01:00
DavidJForgeFlow
621e5d4ec1 [FIX] rma: product_uom_qty not in move_line_ids 2023-03-03 17:00:11 +01:00
Lois Rilo
48b5cd7e64 Merge pull request #399 from ForgeFlow/16.0-fp-376
[16.0][FIX] rma: return of button done
2023-02-22 15:40:24 +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
4cd1255a5d [IMP] rma_account: pre-commit stuff 2023-02-22 11:17:03 +01:00
AaronHForgeFlow
f1b100ef78 [IMP] rma_account: pre-commit, context overridden using dict. Better using kwargs 2023-02-22 11:16:03 +01:00
AaronHForgeFlow
ea60657bf7 [14.0][FIX] rma_account: reconcile GDNI when receiving but refund is expected 2023-02-22 11:16:03 +01:00
Lois Rilo
06bda844bc [IMP] rma_account: adapt to changes in supplier rma group form view. 2023-02-22 11:16:03 +01:00
Lois Rilo
c8c281270e [FIX] rma_account: 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-02-22 11:16:03 +01:00
Jordi Ballester Alomar
0e420cd9d5 [IMP] calculate refund unit price 2023-02-22 11:16:03 +01:00
Jordi Ballester Alomar
abae7d2c95 [FIX] rma_account: try to auto-reconcile interim account 2023-02-22 11:16:03 +01:00
Jordi Ballester Alomar
510f70e438 [IMP] centralize the logic to get the correct cost of the RMA. 2023-02-22 11:16:03 +01:00
Jordi Ballester Alomar
5e5a87d2b4 [FIX] include anglo-saxon price unit calculation in refunds.
Otherwise the anglo saxon entries won't be correct.
For example, the Interim (Delivered) account should balance
after receiving and triggering a refund on a customer rma.
2023-02-22 11:16:03 +01:00
Jordi Ballester Alomar
11183e48df fix pylint 2023-02-22 11:16:03 +01:00
Jordi Ballester Alomar
3448c2f39c [FIX] include anglo-saxon price unit calculation in refunds.
Otherwise the anglo saxon entries won't be correct.
For example, the Interim (Delivered) account should balance
after receiving and triggering a refund on a customer rma.
2023-02-22 11:16:03 +01:00
Juany Davila
0d592f46eb [IMP] fp-303: add changes from 14.0 2023-02-22 11:16:03 +01:00
Christopher Ormaza
5b8087d30b [FIX] get price unit with all related layers on sale moves 2023-02-22 11:16:03 +01:00
DavidJForgeFlow
3935b5c4ec [15.0][FIX] rma_account: fixup of procurement 2023-02-22 11:16:03 +01:00