From 62d72aa238ad46d1fc7589c3740d9b0705ff6abb Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 31 Jan 2014 17:03:04 +0100 Subject: [PATCH] [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 --- addons/mrp/procurement.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/mrp/procurement.py b/addons/mrp/procurement.py index f1c5b66d7d9..b07f6f6de9d 100644 --- a/addons/mrp/procurement.py +++ b/addons/mrp/procurement.py @@ -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