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':[]}}