Browse Source

[FIX] - fix check quantity = 0

pull/238/head
sbejaoui 6 years ago
parent
commit
bd49940c68
  1. 2
      contract_variable_quantity/models/contract_line.py

2
contract_variable_quantity/models/contract_line.py

@ -47,7 +47,7 @@ class AccountAnalyticInvoiceLine(models.Model):
contract_line_qty=qty
).price_unit
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
# qty
vals = {}

Loading…
Cancel
Save