[IMP] improve _save_product_lst_price.

bzr revid: amb@tinyerp.com-20140115135119-mh7phg952conv2of
This commit is contained in:
Amit Bhavsar (Open ERP)
2014-01-15 19:21:19 +05:30
parent 6f277289ea
commit 38b47cb029
+2
View File
@@ -581,6 +581,8 @@ class product_product(osv.osv):
def _save_product_lst_price(self, cr, uid, product_id, field_name, field_value, arg, context=None):
field_value = field_value or 0.0
if not field_value:
return True
product = self.browse(cr, uid, product_id, context=context)
price = product.list_price
if product.price_margin: