mirror of
https://bitbucket.org/presik/trytonpsk-sale_shop.git
synced 2023-12-14 05:22:55 +01:00
minor fix
This commit is contained in:
parent
6d83276485
commit
a0a7311a51
1 changed files with 1 additions and 2 deletions
3
sale.py
3
sale.py
|
@ -437,8 +437,7 @@ class SaleLine(metaclass=PoolMeta):
|
||||||
|
|
||||||
@fields.depends('unit_price_w_tax' , 'quantity', 'product', 'currency')
|
@fields.depends('unit_price_w_tax' , 'quantity', 'product', 'currency')
|
||||||
def on_change_with_amount_w_tax(self, name=None):
|
def on_change_with_amount_w_tax(self, name=None):
|
||||||
print(self.unit_price_w_tax, 'validate')
|
if self.unit_price_w_tax is None:
|
||||||
if not self.unit_price_w_tax:
|
|
||||||
return
|
return
|
||||||
currency_round = self.currency.round
|
currency_round = self.currency.round
|
||||||
return currency_round(self.unit_price_w_tax * Decimal(self.quantity))
|
return currency_round(self.unit_price_w_tax * Decimal(self.quantity))
|
||||||
|
|
Loading…
Reference in a new issue