Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors regarding netsvc #23

Open
lonelyleaves opened this issue Jul 24, 2016 · 1 comment
Open

Errors regarding netsvc #23

lonelyleaves opened this issue Jul 24, 2016 · 1 comment

Comments

@lonelyleaves
Copy link

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?

@ferdiga
Copy link
Collaborator

ferdiga commented Jul 24, 2016

which version? only 6.1 is tested production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants