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:
committed by
Carolina Fernandez
parent
c3b15b81bf
commit
aa85fa10d2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user