From 2ad5cd9955d41df5b8bdb6fd09e4d81cc30693e2 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 17 Sep 2013 09:12:48 +0200 Subject: [PATCH] [FIX] warning: signature of onchange_product_id() of purchase.order.line bzr revid: qdp-launchpad@openerp.com-20130917071248-iq8igi4zxz7zwa4x --- addons/warning/warning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/warning/warning.py b/addons/warning/warning.py index b0ca4937f94..50080736b8c 100644 --- a/addons/warning/warning.py +++ b/addons/warning/warning.py @@ -252,7 +252,7 @@ class purchase_order_line(osv.osv): _inherit = 'purchase.order.line' def onchange_product_id(self,cr, uid, ids, pricelist, product, qty, uom, partner_id, date_order=False, fiscal_position_id=False, date_planned=False, - name=False, price_unit=False, notes=False, context=None): + name=False, price_unit=False, states='draft', notes=False, context=None): warning = {} if not product: return {'value': {'price_unit': 0.0, 'name':'','notes':'', 'product_uom' : False}, 'domain':{'product_uom':[]}}