We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a3bddc + 8b6af01 commit 50164e3Copy full SHA for 50164e3
sale_procurement_group_by_line/model/sale.py
@@ -46,7 +46,7 @@ def _action_launch_stock_rule(self, previous_product_uom_qty=False):
46
or line.product_id.type != "consu"
47
):
48
continue
49
- qty = line._get_qty_procurement(previous_product_uom_qty)
+ qty = line._get_qty_procurement(previous_product_uom_qty) or 0.0
50
if (
51
float_compare(qty, line.product_uom_qty, precision_digits=precision)
52
== 0
0 commit comments