From 2d3542c28aad51e689fb6ed826b263b5367ea57b Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Thu, 6 Sep 2012 12:32:09 +0200 Subject: [PATCH] [FIX] warning: rename the product_id_change method to onchange_product_id bzr revid: stw@openerp.com-20120906103209-670oz6nyato2pcua --- addons/warning/warning.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/warning/warning.py b/addons/warning/warning.py index eb8482ee1cb..b68969f8e7b 100644 --- a/addons/warning/warning.py +++ b/addons/warning/warning.py @@ -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()