Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

TypeError: write() takes exactly 6 arguments (5 given) when running mrp_schedulers

mrp
By
Oscar
on 8/9/13, 2:31 PM 1,458 views

I get the following error when running mrp_schedulers. I have seen that this method is invoked in the sales order workflow but I can not see where exactly is the problem. I have no special code or modules installed.

Thanks in advance

I2013-08-09 09:19:58,552 6315 DEBUG jolibelle_gmbh openerp.addons.base.ir.ir_cron: Starting job Run mrp scheduler. 2013-08-09 09:19:58,553 6315 DEBUG jolibelle_gmbh openerp.addons.base.ir.ir_cron: cron.object.execute('jolibelle_gmbh', 1, '', u'procurement.order', u'run_scheduler', False, True) 2013-08-09 09:19:59,762 6315 DEBUG ? openerp.service.cron: cron1 polling for jobs 2013-08-09 09:19:59,767 6315 DEBUG jolibelle_gmbh openerp.addons.base.ir.ir_cron: Another process/thread is already busy executing job Run mrp scheduler, skipping it. 2013-08-09 09:20:02,609 6315 ERROR jolibelle_gmbh openerp.tools.safe_eval: Cannot eval u"write({'state':'shipping_except'})" Traceback (most recent call last): File "/opt/openerp70/openerp-server/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in File "/opt/openerp70/openerp-server/openerp/osv/orm.py", line 374, in function_proxy return attr(self._cr, self._uid, [self._id], *args, *kwargs) TypeError: write() takes exactly 6 arguments (5 given) 2013-08-09 09:20:02,610 6315 ERROR jolibelle_gmbh openerp.tools.safe_eval: Cannot eval u'action_cancel()' Traceback (most recent call last): File "/opt/openerp70/openerp-server/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in File "/opt/openerp70/openerp-server/openerp/osv/orm.py", line 374, in function_proxy return attr(self._cr, self._uid, [self._id], args, *kwargs) File "/opt/openerp70/openerp-server/openerp/addons/procurement/procurement.py", line 431, in action_cancel wf_service.trg_trigger(uid, 'procurement.order', id, cr) File "/opt/openerp70/openerp-server/openerp/workflow/wkf_service.py", line 73, in trg_trigger instance.update(cr, instance_id, ident) File "/opt/openerp70/openerp-server/openerp/workflow/instance.py", line 52, in update workitem.process(cr, witem, ident, stack=stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 60, in process ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 175, in _split_test _join_test(cr, t[0], t[1], ident, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 183, in _join_test create(cr,[activity], inst_id, ident, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 40, in create process(cr, res, ident, stack=stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 52, in process result = _execute(cr, workitem, activity, ident, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 106, in _execute returned_action = wkf_expr.execute(cr, ident, workitem, activity) File "/opt/openerp70/openerp-server/openerp/workflow/wkf_expr.py", line 67, in execute return _eval_expr(cr, ident, workitem, activity['action']) File "/opt/openerp70/openerp-server/openerp/workflow/wkf_expr.py", line 57, in _eval_expr ret = eval(line, env, nocopy=True) File "/opt/openerp70/openerp-server/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in File "/opt/openerp70/openerp-server/openerp/osv/orm.py", line 374, in function_proxy return attr(self._cr, self._uid, [self._id], args, *kwargs) TypeError: write() takes exactly 6 arguments (5 given) 2013-08-09 09:20:02,611 6315 ERROR jolibelle_gmbh openerp.addons.base.ir.ir_cron: Call of self.pool.get('procurement.order').run_scheduler(cr, uid, (False, True)) failed in Job 6 Traceback (most recent call last): File "/opt/openerp70/openerp-server/openerp/addons/base/ir/ir_cron.py", line 136, in _callback method(cr, uid, *args) File "/opt/openerp70/openerp-server/openerp/addons/procurement/schedulers.py", line 41, in run_scheduler self._procure_confirm(cr, uid, use_new_cursor=use_new_cursor, context=context) File "/opt/openerp70/openerp-server/openerp/addons/procurement/schedulers.py", line 105, in _procure_confirm wf_service.trg_validate(uid, 'procurement.order', proc.id, 'button_check', cr) File "/opt/openerp70/openerp-server/openerp/workflow/wkf_service.py", line 119, in trg_validate res2 = instance.validate(cr, id, ident, signal) File "/opt/openerp70/openerp-server/openerp/workflow/instance.py", line 43, in validate workitem.process(cr, witem, ident, signal, force_running, stack=stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 60, in process ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 175, in _split_test _join_test(cr, t[0], t[1], ident, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 183, in _join_test create(cr,[activity], inst_id, ident, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 40, in create process(cr, res, ident, stack=stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 52, in process result = _execute(cr, workitem, activity, ident, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 106, in _execute returned_action = wkf_expr.execute(cr, ident, workitem, activity) File "/opt/openerp70/openerp-server/openerp/workflow/wkf_expr.py", line 67, in execute return _eval_expr(cr, ident, workitem, activity['action']) File "/opt/openerp70/openerp-server/openerp/workflow/wkf_expr.py", line 57, in _eval_expr ret = eval(line, env, nocopy=True) File "/opt/openerp70/openerp-server/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in File "/opt/openerp70/openerp-server/openerp/osv/orm.py", line 374, in function_proxy return attr(self._cr, self._uid, [self._id], *args, *kwargs) File "/opt/openerp70/openerp-server/openerp/addons/procurement/procurement.py", line 431, in action_cancel wf_service.trg_trigger(uid, 'procurement.order', id, cr) File "/opt/openerp70/openerp-server/openerp/workflow/wkf_service.py", line 73, in trg_trigger instance.update(cr, instance_id, ident) File "/opt/openerp70/openerp-server/openerp/workflow/instance.py", line 52, in update workitem.process(cr, witem, ident, stack=stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 60, in process ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 175, in _split_test _join_test(cr, t[0], t[1], ident, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 183, in _join_test create(cr,[activity], inst_id, ident, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 40, in create process(cr, res, ident, stack=stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 52, in process result = _execute(cr, workitem, activity, ident, stack) File "/opt/openerp70/openerp-server/openerp/workflow/workitem.py", line 106, in _execute returned_action = wkf_expr.execute(cr, ident, workitem, activity) File "/opt/openerp70/openerp-server/openerp/workflow/wkf_expr.py", line 67, in execute return _eval_expr(cr, ident, workitem, activity['action']) File "/opt/openerp70/openerp-server/openerp/workflow/wkf_expr.py", line 57, in _eval_expr ret = eval(line, env, nocopy=True) File "/opt/openerp70/openerp-server/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in File "/opt/openerp70/openerp-server/openerp/osv/orm.py", line 374, in function_proxy return attr(self._cr, self._uid, [self._id], args, *kwargs) TypeError: write() takes exactly 6 arguments (5 given)

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 8/9/13, 2:31 PM
Seen: 1458 times
Last updated: 3/16/15, 8:10 AM