minor fix

This commit is contained in:
Wilson Gomez 2023-12-04 14:24:04 -05:00
parent 6d83276485
commit a0a7311a51
1 changed files with 1 additions and 2 deletions

View File

@ -437,8 +437,7 @@ class SaleLine(metaclass=PoolMeta):
@fields.depends('unit_price_w_tax' , 'quantity', 'product', 'currency')
def on_change_with_amount_w_tax(self, name=None):
print(self.unit_price_w_tax, 'validate')
if not self.unit_price_w_tax:
if self.unit_price_w_tax is None:
return
currency_round = self.currency.round
return currency_round(self.unit_price_w_tax * Decimal(self.quantity))