Hi,
with ecoservice addons installed, a yml test from the sale module triggers the error below. I am still trying to figure out how to approach this.
sale.test/manual_order_policy.yml (from (output.xml))
Stacktrace
2014-01-22 10:59:47,925 24025 ERROR openerp.tools.safe_eval: Cannot eval u'action_move_create()'
Traceback (most recent call last):
File "/opt/-erp/devel/lib/server/upstream/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>
File "/opt/-erp/devel/lib/server/upstream/openerp/osv/orm.py", line 377, in function_proxy
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface/account.py", line 272, in action_move_create
thisreturn = super(account_invoice, self).action_move_create(cr, uid, ids, *args)
File "/opt/-erp/devel/lib/addons/HEAD/account/account_invoice.py", line 1021, in action_move_create
move_obj.post(cr, uid, [move_id], context=ctx)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface/account.py", line 133, in post
self.finance_interface_checks(cr, uid, ids, context)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface_datev/account.py", line 130, in finance_interface_checks
res = super(account_move, self).finance_interface_checks(cr, uid, ids, context=context)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface/account.py", line 101, in finance_interface_checks
raise osv.except_osv('Error', thiserror)
except_osv: ('Error', u'The main account of the booking could not be resolved, the move has 2 credit- and 2 debitlines!\n')
2014-01-22 10:59:47,927 24025 ERROR openerp.tools.yaml_import: ('Error', u'The main account of the booking could not be resolved, the move has 2 credit- and 2 debitlines!\n')
Traceback (most recent call last):
File "/opt/-erp/devel/lib/server/upstream/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/opt/-erp/devel/lib/server/upstream/openerp/tools/yaml_import.py", line 877, in _process_node
self.process_python(node)
File "/opt/-erp/devel/lib/server/upstream/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/opt/-erp/devel/lib/addons/HEAD/sale/test/manual_order_policy.yml", line 5, in <module>
-
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/wkf_service.py", line 119, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/instance.py", line 43, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 52, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 106, in _execute
returned_action = wkf_expr.execute(cr, ident, workitem, activity)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/wkf_expr.py", line 67, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/wkf_expr.py", line 57, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/opt/-erp/devel/lib/server/upstream/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>
File "/opt/-erp/devel/lib/server/upstream/openerp/osv/orm.py", line 377, in function_proxy
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface/account.py", line 272, in action_move_create
thisreturn = super(account_invoice, self).action_move_create(cr, uid, ids, *args)
File "/opt/-erp/devel/lib/addons/HEAD/account/account_invoice.py", line 1021, in action_move_create
move_obj.post(cr, uid, [move_id], context=ctx)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface/account.py", line 133, in post
self.finance_interface_checks(cr, uid, ids, context)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface_datev/account.py", line 130, in finance_interface_checks
res = super(account_move, self).finance_interface_checks(cr, uid, ids, context=context)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface/account.py", line 101, in finance_interface_checks
raise osv.except_osv('Error', thiserror)
except_osv: ('Error', u'The main account of the booking could not be resolved, the move has 2 credit- and 2 debitlines!\n')
2014-01-22 10:59:47,928 24025 ERROR openerp.modules.loading: module sale: an exception occurred in a test
Traceback (most recent call last):
File "/opt/-erp/devel/lib/server/upstream/openerp/modules/loading.py", line 83, in load_test
_load_data(cr, module_name, idref, mode, 'test')
File "/opt/-erp/devel/lib/server/upstream/openerp/modules/loading.py", line 122, in _load_data
tools.convert_yaml_import(cr, module_name, fp, kind, idref, mode, noupdate, report)
File "/opt/-erp/devel/lib/server/upstream/openerp/tools/yaml_import.py", line 928, in yaml_import
yaml_interpreter.process(yaml_string)
File "/opt/-erp/devel/lib/server/upstream/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/opt/-erp/devel/lib/server/upstream/openerp/tools/yaml_import.py", line 877, in _process_node
self.process_python(node)
File "/opt/-erp/devel/lib/server/upstream/openerp/tools/yaml_import.py", line 550, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/opt/-erp/devel/lib/addons/HEAD/sale/test/manual_order_policy.yml", line 5, in <module>
-
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/wkf_service.py", line 119, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/instance.py", line 43, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 52, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/workitem.py", line 106, in _execute
returned_action = wkf_expr.execute(cr, ident, workitem, activity)
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/wkf_expr.py", line 67, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/opt/-erp/devel/lib/server/upstream/openerp/workflow/wkf_expr.py", line 57, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/opt/-erp/devel/lib/server/upstream/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>
File "/opt/-erp/devel/lib/server/upstream/openerp/osv/orm.py", line 377, in function_proxy
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface/account.py", line 272, in action_move_create
thisreturn = super(account_invoice, self).action_move_create(cr, uid, ids, *args)
File "/opt/-erp/devel/lib/addons/HEAD/account/account_invoice.py", line 1021, in action_move_create
move_obj.post(cr, uid, [move_id], context=ctx)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface/account.py", line 133, in post
self.finance_interface_checks(cr, uid, ids, context)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface_datev/account.py", line 130, in finance_interface_checks
res = super(account_move, self).finance_interface_checks(cr, uid, ids, context=context)
File "/opt/-erp/devel/lib/addons/HEAD/ecoservice_financeinterface/account.py", line 101, in finance_interface_checks
raise osv.except_osv('Error', thiserror)
except_osv: ('Error', u'The main account of the booking could not be resolved, the move has 2 credit- and 2 debitlines!\n')