[IMP] - Skip zero should ignore lines with qty zero even for fixed qty

This commit is contained in:
sbejaoui
2018-12-28 12:35:12 +01:00
committed by Carolina Fernandez
parent c3b15b81bf
commit aa85fa10d2

View File

@@ -40,4 +40,9 @@ class AccountAnalyticInvoiceLine(models.Model):
vals['price_unit'] = self.with_context( vals['price_unit'] = self.with_context(
contract_line_qty=qty, contract_line_qty=qty,
).price_unit ).price_unit
else:
if vals.get('quantity') and vals['quantity'] == 0:
# Skip zero should ignore lines with qty zero even for fixed
# qty
vals = {}
return vals return vals