c2c-rd-addons icon indicating copy to clipboard operation
c2c-rd-addons copied to clipboard

Errors regarding netsvc

Open lonelyleaves opened this issue 9 years ago • 1 comments
trafficstars

model “MRP Reopen” The fix didn't work for me. When trying "Rest to draft" it will gain create this error message: ... File "/opt/odoo/openerp/addons/mrp_reopen/mrp.py", line 119, in action_reopen wf_service = openerp.workflow NameError: global name 'netsvc' is not defined. My line 118-120: self.write(cr, uid, mrp.id, {'state':'draft'}) wf_service = openerp.workflow wf_service.trg_delete(uid, 'mrp.production', mrp.id, cr) Any idea, what to do?I have changed the line “wf_service = netsvc.LocalService("workflow") ”for ”wf_service = openerp.workflow“ in mrp.py from mrp_reopen module. and then,what to do?

lonelyleaves avatar Jul 24 '16 08:07 lonelyleaves

which version? only 6.1 is tested production

ferdiga avatar Jul 24 '16 09:07 ferdiga