[FIX] warning: rename the product_id_change method to onchange_product_id

bzr revid: stw@openerp.com-20120906103209-670oz6nyato2pcua
This commit is contained in:
Stephane Wirtel
2012-09-06 12:32:09 +02:00
parent b716542a44
commit 2d3542c28a
+3 -1
View File
@@ -230,7 +230,7 @@ sale_order_line()
class purchase_order_line(osv.osv):
_inherit = 'purchase.order.line'
def product_id_change(self,cr, uid, ids, pricelist, product, qty, uom,
def onchange_product_id(self,cr, uid, ids, pricelist, product, qty, uom,
partner_id, date_order=False, fiscal_position=False, date_planned=False,
name=False, price_unit=False, notes=False, context=None):
warning = {}
@@ -258,6 +258,8 @@ class purchase_order_line(osv.osv):
return {'value': result.get('value',{}), 'warning':warning}
product_id_change = onchange_product_id
purchase_order_line()