mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] - fix check quantity = 0
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user