Skip to content

Commit 1f2703b

Browse files
committed
REVERT: Back to original implementation of _action_launch_stock_rule
1 parent 3e85dbe commit 1f2703b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

sale_order_add_byproduct/models/sale_order_line.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ def _action_launch_stock_rule(self, previous_product_uom_qty=False):
1818
lines_to_procure = self.filtered(lambda line: not line.is_mrp_byproduct_line)
1919

2020
# Call the super method with only the filtered lines
21-
# If no lines need procurement, we still need to return the proper result
22-
if lines_to_procure:
23-
return super(SaleOrderLine, lines_to_procure)._action_launch_stock_rule(
24-
previous_product_uom_qty=previous_product_uom_qty
25-
)
26-
else:
27-
# If no lines need procurement, return the same type of result that super would return
28-
# This is typically True for success
29-
return True
21+
return super(SaleOrderLine, lines_to_procure)._action_launch_stock_rule(
22+
previous_product_uom_qty=previous_product_uom_qty
23+
)

0 commit comments

Comments
 (0)