[FIX] - fix check quantity = 0

This commit is contained in:
sbejaoui
2019-01-07 10:10:47 +01:00
committed by Víctor Martínez
parent d95fbca7c0
commit 0caeffffa6

View File

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