Skip to content

Commit

Permalink
[FIX] rma_account: create correctly two-step rules in test
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJForgeFlow authored and AaronHForgeFlow committed Oct 27, 2023
1 parent 0bd0407 commit d7278b4
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion rma_account/tests/test_rma_stock_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7278b4

Please sign in to comment.