diff --git a/addons/product/product.py b/addons/product/product.py index 6e0b01c87f5..2e7eb3c499d 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -727,15 +727,13 @@ class product_product(osv.osv): return {'value': {'uom_po_id': uom_id}} return False - def onchange_product_tmpl_id(self, cr, uid, ids, template_id, lst_price, price_margin, price_extra, context=None): + def onchange_product_tmpl_id(self, cr, uid, ids, template_id, context=None): res = {} if template_id: template = self.pool.get('product.template').browse(cr, uid, template_id, context=context) - if not lst_price: - lst_price = template.list_price + ((template.list_price * price_margin) + price_extra) res['value'] = { 'name': template.name, - 'lst_price': lst_price, + 'lst_price': template.list_price, } return res diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index d39a2d93d64..eedbda81cff 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -61,16 +61,13 @@