[FIX] stock: when creating manufacturing order from procurement workflow, do not write location on state (already set previously). (opw 603600)

This avoids having an access rights error when trying to write on a move in done state (eg: in case of force availibility)

bzr revid: mat@openerp.com-20140131160304-22mokur2uuo1cw4r
This commit is contained in:
Martin Trigaux 2014-01-31 17:03:04 +01:00
parent 23de024718
commit 62d72aa238
1 changed files with 0 additions and 3 deletions

View File

@ -113,9 +113,6 @@ class procurement_order(osv.osv):
bom_result = production_obj.action_compute(cr, uid,
[produce_id], properties=[x.id for x in procurement.property_ids])
wf_service.trg_validate(uid, 'mrp.production', produce_id, 'button_confirm', cr)
if res_id:
move_obj.write(cr, uid, [res_id],
{'location_id': procurement.location_id.id})
self.production_order_create_note(cr, uid, ids, context=context)
return res