Browse Source

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

pull/238/head
sbejaoui 6 years ago
parent
commit
24869ff565
  1. 5
      contract_variable_quantity/models/contract_line.py

5
contract_variable_quantity/models/contract_line.py

@ -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
Loading…
Cancel
Save