Pass ids instead of browse record as properties

bzr revid: ced-d2311f832b8082d74700c57a6613ea314f17b3e3
This commit is contained in:
ced 2007-08-31 13:47:20 +00:00
parent 0edf7751fd
commit 8e1497f35b
1 changed files with 2 additions and 1 deletions

View File

@ -813,7 +813,8 @@ class mrp_procurement(osv.osv):
'move_prod_id': res_id,
})
self.write(cr, uid, [procurement.id], {'state':'running'})
bom_result = self.pool.get('mrp.production').action_compute(cr, uid, [produce_id], properties=procurement.property_ids)
bom_result = self.pool.get('mrp.production').action_compute(cr, uid,
[produce_id], properties=[x.id for x in procurement.property_ids])
wf_service = netsvc.LocalService("workflow")
wf_service.trg_validate(uid, 'mrp.production', produce_id, 'button_confirm', cr)
return produce_id