Fix applying repeated discount each time that quantity field is modified

This commit is contained in:
jmartin 2014-03-12 14:01:44 +01:00
parent 2ace916ab1
commit 2cd8fc9457

View file

@ -12,6 +12,7 @@ class SaleLine:
__name__ = 'sale.line'
def update_prices(self):
self.discount = Decimal(0)
res = super(SaleLine, self).update_prices()
if hasattr(self, 'product'):
Product = Pool().get('product.product')