From 9be8ea59955ed7960112aa3ae429ea26082d1926 Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Fri, 11 Feb 2011 16:55:20 +0530 Subject: [PATCH] [FIX]mrp_operation:cancelling MO given - given arguments wrong lp bug: https://launchpad.net/bugs/709065 fixed bzr revid: ron@tinyerp.com-20110211112520-c79ulbypasq38stt --- addons/mrp_operations/mrp_operations.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/mrp_operations/mrp_operations.py b/addons/mrp_operations/mrp_operations.py index df5456baa4a..a01d22717b6 100644 --- a/addons/mrp_operations/mrp_operations.py +++ b/addons/mrp_operations/mrp_operations.py @@ -244,10 +244,12 @@ class mrp_production(osv.osv): wf_service.trg_validate(uid, 'mrp.production.workcenter.line', workcenter_line.id, 'button_start_working', cr) return super(mrp_production,self).action_in_production(cr, uid, ids) - def action_cancel(self, cr, uid, ids): + def action_cancel(self, cr, uid, ids, context=None): """ Cancels work order if production order is canceled. @return: Super method """ + if context is None: + context = {} obj = self.browse(cr, uid, ids)[0] wf_service = netsvc.LocalService("workflow") for workcenter_line in obj.workcenter_lines: