fix ._compute_quantity

This commit is contained in:
Luc De Meyer
2019-12-19 17:26:26 +01:00
parent 4954991e38
commit 403c4629e2

View File

@@ -354,8 +354,7 @@ class IntrastatProductDeclaration(models.Model):
"the lines or adjust the impacted lines manually")
self._note += note
return weight, suppl_unit_qty
qty = source_uom._compute_quantity(
line_qty, product.uom_id, raise_if_failure=False)
qty = source_uom._compute_quantity(line_qty, product.uom_id)
weight = product.weight * qty
return weight, suppl_unit_qty