From d7278b493267a495bca443d933af797d441fdefb Mon Sep 17 00:00:00 2001 From: DavidJForgeFlow Date: Wed, 27 Sep 2023 16:00:51 +0200 Subject: [PATCH] [FIX] rma_account: create correctly two-step rules in test --- rma_account/tests/test_rma_stock_account.py | 26 ++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/rma_account/tests/test_rma_stock_account.py b/rma_account/tests/test_rma_stock_account.py index 65b2f3028..a42ddfb37 100644 --- a/rma_account/tests/test_rma_stock_account.py +++ b/rma_account/tests/test_rma_stock_account.py @@ -273,7 +273,31 @@ def test_04_cost_from_move_multi_step(self): ) self.env["stock.rule"].create( { - "name": "Output->RMA", + "name": "Output->Customer", + "action": "pull", + "warehouse_id": self.wh.id, + "location_src_id": self.output_location.id, + "location_id": self.customer_location.id, + "procure_method": "make_to_order", + "route_id": self.customer_route.id, + "picking_type_id": self.env.ref("stock.picking_type_internal").id, + } + ) + self.env["stock.rule"].create( + { + "name": "Customer->Input", + "action": "pull", + "warehouse_id": self.wh.id, + "location_src_id": self.customer_location.id, + "location_id": self.input_location.id, + "procure_method": "make_to_stock", + "route_id": self.customer_route.id, + "picking_type_id": self.env.ref("stock.picking_type_internal").id, + } + ) + self.env["stock.rule"].create( + { + "name": "Input->RMA", "action": "pull", "warehouse_id": self.wh.id, "location_src_id": self.input_location.id,