credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #06105
Re: [Merge] lp:~savoirfairelinux-openerp/openupgrade-addons/sale_crm into lp:openupgrade-addons
I'm getting the following error when upgrading from 6.1 and it seems to be related to a workflow trigger:
2014-10-29 15:33:16,648 8281 INFO db OpenUpgrade: sale_crm: post-migration script called with version 6.1.1.0
2014-10-29 15:33:16,772 8281 ERROR db openerp.tools.safe_eval: Cannot eval u"test_state('canceled')"
Traceback (most recent call last):
File "/home/ubuntu/projects/openupgrade/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 <module>
NameError: name 'test_state' is not defined
2014-10-29 15:33:16,800 8281 ERROR db OpenUpgrade: sale_crm: error in migration script /home/ubuntu/projects/openupgrade/addons/sale_crm/migrations/7.0.1.0/post-migration.py: name 'test_state' is not defined
2014-10-29 15:33:16,800 8281 ERROR db OpenUpgrade: name 'test_state' is not defined
Traceback (most recent call last):
File "/home/ubuntu/projects/openupgrade/server/openerp/openupgrade/openupgrade.py", line 473, in wrapped_function
func(cr, version)
File "/home/ubuntu/projects/openupgrade/addons/sale_crm/migrations/7.0.1.0/post-migration.py", line 31, in migrate
openupgrade.get_legacy_name('categ_id'))
File "/home/ubuntu/projects/openupgrade/server/openerp/openupgrade/openupgrade.py", line 414, in m2o_to_m2m
model.write(cr, SUPERUSER_ID, row[0], {field: [(4, row[1])]})
File "/home/ubuntu/projects/openupgrade/addons/mail/mail_thread.py", line 264, in write
result = super(mail_thread, self).write(cr, uid, ids, values, context=context)
File "/home/ubuntu/projects/openupgrade/server/openerp/osv/orm.py", line 4299, in write
self._workflow_trigger(cr, user, ids, 'trg_write', context=context)
File "/home/ubuntu/projects/openupgrade/server/openerp/osv/orm.py", line 3946, in _workflow_trigger
getattr(wf_service, trigger)(uid, self._name, res_id, cr)
File "/home/ubuntu/projects/openupgrade/server/openerp/workflow/wkf_service.py", line 55, in trg_write
instance.update(cr, id, ident)
File "/home/ubuntu/projects/openupgrade/server/openerp/workflow/instance.py", line 52, in update
workitem.process(cr, witem, ident, stack=stack)
File "/home/ubuntu/projects/openupgrade/server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/ubuntu/projects/openupgrade/server/openerp/workflow/workitem.py", line 157, in _split_test
if wkf_expr.check(cr, workitem, ident, transition,signal):
File "/home/ubuntu/projects/openupgrade/server/openerp/workflow/wkf_expr.py", line 80, in check
return _eval_expr(cr, ident, workitem, transition['condition'])
File "/home/ubuntu/projects/openupgrade/server/openerp/workflow/wkf_expr.py", line 57, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/home/ubuntu/projects/openupgrade/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 <module>
NameError: name 'test_state' is not defined
I'm watching into this but any tip to fix this is welcome :)
--
https://code.launchpad.net/~savoirfairelinux-openerp/openupgrade-addons/sale_crm/+merge/234126
Your team OpenUpgrade Committers is subscribed to branch lp:openupgrade-addons.
References