Allow modify discount after it is calculated.

This commit is contained in:
jmartin 2014-07-08 10:22:56 +02:00
parent 22f55a7388
commit db62b8434f

View file

@ -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')