mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] - Skip zero should ignore lines with qty zero even for fixed qty
This commit is contained in:
@@ -40,4 +40,9 @@ class AccountAnalyticInvoiceLine(models.Model):
|
||||
vals['price_unit'] = self.with_context(
|
||||
contract_line_qty=qty,
|
||||
).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
|
||||
|
||||
Reference in New Issue
Block a user