Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
MRP (mrp)
• Social Network (mail) • Warehouse Management (stock) |
Technical Name |
mrp_reopen |
License | AGPL-3 |
Website | http://www.camptocamp.com |
Versions | 8.0 |
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedIn odoo v8.0 20150503 there are errors regarding netsvc. I found in netsvc.py an explanation to this problem: "The openerp.netsvc.LocalService() function is deprecated" so, I have changed the line wf_service = netsvc.LocalService("workflow") for wf_service = openerp.workflow in mrp.py from mrp_reopen module. It seems to work now.
Errors regarding netsvc
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?