Commit Graph

581 Commits

Author SHA1 Message Date
Lois Rilo
7892cab9e8 [IMP] rma_purchase: adapt to simplification on rma.line form view. 2023-07-07 17:26:14 +02:00
Mateu Griful
1cb2277c5e [MIG] rma_purchase: Migration to 14.0 2023-07-07 17:26:14 +02:00
Mateu Griful
5e0d08aa5b [IMP] rma_purchase: black, isort, prettier 2023-07-07 17:26:14 +02:00
mreficent
c7a9316efd [FIX] default_gets: avoid using shadowname 'fields' 2023-07-07 17:26:14 +02:00
ahenriquez
d79409e9b3 [FIX] action returned when creating purchase orders from rma 2023-07-07 17:26:14 +02:00
ahenriquez
cf283cccb2 [FIX]remove autoinstall for rma_account, rma_sale and rma_purchase modules 2023-07-07 17:26:14 +02:00
Bhavesh Odedra
d6ec80d3bd [SET] Correct website URL for RMA modules 2023-07-07 17:26:14 +02:00
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
SergiCForgeFlow
030b204910 [MIG] rma_scrap: Migration to 16.0 2023-06-28 10:49:01 +02:00
SergiCForgeFlow
1fe576ba61 [IMP] rma_scrap: pre-commit stuff 2023-06-20 09:11:37 +02:00
Jordi Ballester Alomar
0f59a8048f [FIX] rma_scrap: various fixes 2023-06-20 09:10:47 +02:00
DavidJForgeFlow
70289bdadd [14.0][ADD] rma_scrap 2023-06-20 09:10:47 +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