mirror of
https://github.com/NaN-tic/trytond-sale_discount_visible.git
synced 2023-12-14 05:13:13 +01:00
Allow modify discount after it is calculated.
This commit is contained in:
parent
22f55a7388
commit
db62b8434f
2
sale.py
2
sale.py
|
@ -12,7 +12,7 @@ class SaleLine:
|
|||
__name__ = 'sale.line'
|
||||
|
||||
def update_prices(self):
|
||||
if hasattr(self, 'product'):
|
||||
if hasattr(self, 'product') and self.discount == Decimal(0):
|
||||
self.discount = Decimal(0)
|
||||
res = super(SaleLine, self).update_prices()
|
||||
Product = Pool().get('product.product')
|
||||
|
|
Loading…
Reference in a new issue