minor fix
This commit is contained in:
parent
ce1a01fd96
commit
3500ea3b0a
2
sale.py
2
sale.py
|
@ -395,7 +395,7 @@ class SaleLine(metaclass=PoolMeta):
|
|||
|
||||
@fields.depends('unit_price', 'quantity', 'taxes')
|
||||
def on_change_with_unit_price_w_tax(self, name=None):
|
||||
if not self.quantity or not self.unit_price:
|
||||
if not self.quantity or self.unit_price is not None:
|
||||
return
|
||||
currency_round = self.currency.round
|
||||
if self.taxes:
|
||||
|
|
Loading…
Reference in New Issue