Commit Graph

310 Commits

Author SHA1 Message Date
Murtuza Saleh
705595d993 [WIP][MIG][12.0] rma_purchase 2023-07-07 17:26:14 +02:00
aheficent
a18de08781 [FIX]currency_id was not filled 2023-07-07 17:26:14 +02:00
Lois Rilo
21d66ebd09 [9.0][REW] rma_purchase: complete rework of tests 2023-07-07 17:26:14 +02:00
Bhavesh Odedra
56b72e1106 [ENH] make supplier readonly in Create Purchase Order wizard 2023-07-07 17:26:14 +02:00
Bhavesh Odedra
b6f10478c8 [ENH] change from customer to supplier domain and lable in Purchase wizard 2023-07-07 17:26:14 +02:00
aheficent
4e5bc3852d [IMP]include action to see PO generated from the RMA 2023-07-07 17:26:14 +02:00
aheficent
14dcc138b1 [IMP]create PO from wizard 2023-07-07 17:26:14 +02:00
Bhavesh Odedra
77bc9db3cb [FIX] issue of name_get purchase order line id 2023-07-07 17:26:14 +02:00
Bhavesh Odedra
5d7064bef0 [FIX] flake8 2023-07-07 17:26:14 +02:00
Bhavesh Odedra
6fd4824b51 [RM] ValidationError message if there is no purchase order found 2023-07-07 17:26:14 +02:00
Bhavesh Odedra
947b5ff52a [MIG] Purchase policy 2023-07-07 17:26:14 +02:00
Bhavesh Odedra
33d4316297 Revert "[IMP] rma_operation"
This reverts commit 044bb2461acdb88e1ef98b1563e5ea7cb354918c.
2023-07-07 17:26:14 +02:00
Bhavesh Odedra
df97cee827 Revert "[IMP] code"
This reverts commit dfa54dadc9ee5c3946e86b4521474afb764d6710.
2023-07-07 17:26:14 +02:00
Bhavesh Odedra
78a65f0d8e [IMP] rma_operation 2023-07-07 17:26:14 +02:00
Bhavesh Odedra
30136260a6 [IMP] code 2023-07-07 17:26:14 +02:00
Lois Rilo
80104557a1 [9.0] rma_purchase: add purchase_policy
cherry-pick 2100329188e45bf465d43b47c7e45cdb5041bc11
2023-07-07 17:26:14 +02:00
aaron
0d1eba7631 [IMP]name get when filling form purchase order lines
Conflicts:
	rma_purchase/models/purchase_order_line.py
2023-07-07 17:26:14 +02:00
Bhavesh Odedra
a0eaeca718 Revert "[FIX] TypeError: unhashable type: 'list'"
This reverts commit 6443a8147c0cc4839577949ab7444a89a0c81927.
2023-07-07 17:26:14 +02:00
Bhavesh Odedra
0bd6280db8 [FIX] TypeError: unhashable type: 'list' 2023-07-07 17:26:14 +02:00
Maxime Chambreuil
9be02aae77 [FIX] Add read access to purchase order and po line 2023-07-07 17:26:14 +02:00
Bhavesh Odedra
b263c6a049 [11.0] MIG: rma_purchase 2023-07-07 17:26:14 +02:00
Maxime Chambreuil
0283632de7 [MIG] Migrate configuration and cleanup 2023-07-07 17:26:14 +02:00
Nikul Chaudhary
b7597ecf6f [MIG] Migrated UT & Fixed Travis 2023-07-07 17:26:14 +02:00
aheficent
afb40513a8 [FIX]various fixes 2023-07-07 17:26:14 +02:00
Nikul Chaudhary
c02e50bf7e [IMP] Improved Unit Test Case and Fixed Travis 2023-07-07 17:26:14 +02:00
aheficent
6e00e111b5 [MIG]rma_purchase v10 2023-07-07 17:26:14 +02:00
lreficent
01e1644d6b [9.0][IMP] rma: add link to source SO and PO 2023-07-07 17:26:14 +02:00
lreficent
1b1e89bbfe [FIX] allow child partners too 2023-07-07 17:26:14 +02:00
lreficent
a5ff11a1fa [9.0][IMP] rma_purchase: allow to search by order reference 2023-07-07 17:26:14 +02:00
lreficent
a150190107 [9.0][FIX] wizards need to specify partner. 2023-07-07 17:26:14 +02:00
lreficent
d2afae123c [9.0][IMP] rma: add constrains 2023-07-07 17:26:14 +02:00
lreficent
296873ce45 [9.0][REW] rma_purchase: adapt 2023-07-07 17:26:14 +02:00
lreficent
0ac8f41006 [9.0][IMP] rma_purchase:
* remove unneded copy and ondelete attributes.
* simplify action_view methods.
* fix rma line supplier view.
* fix wizard.
* extend README.
* minor extra fixes.
2023-07-07 17:26:14 +02:00
aheficent
a771a1d7be [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:26:14 +02:00
lreficent
4609c0e3b0 [9.0][FIX] rma:
* fix assignment of moves.
* default qty in rma lines.
* remove account dependency.
* test and flake8 fixes.
2023-07-07 17:26:14 +02:00
Jordi Ballester
b3f4819c1e init branch 2023-07-07 17:26:14 +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