minor fix
This commit is contained in:
parent
6d83276485
commit
a0a7311a51
3
sale.py
3
sale.py
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue