[FIX]purchase: forgot to add a parameter in onchange_product_id call

bzr revid: csn@openerp.com-20130617084916-x390jr8vq7ams4ov
This commit is contained in:
Cedric Snauwaert 2013-06-17 10:49:16 +02:00
parent 27be52fb28
commit 3e3600a43f
1 changed files with 1 additions and 1 deletions

View File

@ -942,7 +942,7 @@ class purchase_order_line(osv.osv):
return {'value': {'price_unit': price_unit or 0.0, 'name': name or '', 'product_uom' : uom_id or False}}
return self.onchange_product_id(cr, uid, ids, pricelist_id, product_id, qty, uom_id,
partner_id, date_order=date_order, fiscal_position_id=fiscal_position_id, date_planned=date_planned,
name=name, price_unit=price_unit, context=context)
name=name, price_unit=price_unit, state=state, context=context)
def _get_date_planned(self, cr, uid, supplier_info, date_order_str, lead_time, context=None):
"""Return the datetime value to use as Schedule Date (``date_planned``) for