minor fix

This commit is contained in:
Wilson Gomez 2023-12-04 10:23:27 -05:00
parent ce1a01fd96
commit 3500ea3b0a
1 changed files with 1 additions and 1 deletions

View File

@ -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: