Skip to content

Instantly share code, notes, and snippets.

@alcidesrivera
Created October 13, 2014 20:43
Show Gist options
  • Save alcidesrivera/bfb1141de0ac573f44a1 to your computer and use it in GitHub Desktop.
Save alcidesrivera/bfb1141de0ac573f44a1 to your computer and use it in GitHub Desktop.
Error factura de proveedor
2014-10-13 20:20:52,439 9693 ERROR xxxxx openerp.tools.safe_eval: Cannot eval u'action_invoice_create()'
Traceback (most recent call last):
File "/home/servidor/apps/openerp-7.0/server/openerp/tools/safe_eval.py", line 285, in safe_eval
return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 377, in function_proxy
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "/home/servidor/apps/openerp-7.0/addons/purchase/purchase.py", line 561, in action_invoice_create
inv_id = inv_obj.create(cr, uid, inv_data, context=context)
File "/home/servidor/apps/openerp-7.0/addons/mail/mail_thread.py", line 252, in create
thread_id = super(mail_thread, self).create(cr, uid, values, context=context_operation)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 4561, in create
self.pool.get(object)._store_set_values(cr, user, ids, fields2, context)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 4714, in _store_set_values
result = self._columns[f].get(cr, self, ids, f, SUPERUSER_ID, context=context)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/fields.py", line 1145, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/servidor/apps/openerp-7.0/odoo-ecuador/l10n_ec-invoice_sequence/invoice.py", line 35, in _number
result[invoice.id] = invoice.invoice_number
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 502, in __getattr__
return self[name]
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 405, in __getitem__
field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 3679, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 3740, in _read_flat
if context.get('lang'):
AttributeError: 'str' object has no attribute 'get'
2014-10-13 20:20:52,440 9693 ERROR xxxxx openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/osv.py", line 222, in exec_workflow
res = self.exec_workflow_cr(cr, uid, obj, signal, *args)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/osv.py", line 215, in exec_workflow_cr
return object._workflow_signal(cr, uid, [res_id], signal)[res_id]
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 4002, in _workflow_signal
result[res_id] = wf_service.trg_validate(uid, self._name, res_id, signal, cr)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/wkf_service.py", line 119, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/instance.py", line 43, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 198, in _join_test
create(cr, [activity], inst_id, ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 52, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 127, in _execute
id_new = wkf_expr.execute(cr, ident, workitem, activity)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/wkf_expr.py", line 67, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/wkf_expr.py", line 57, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/home/servidor/apps/openerp-7.0/server/openerp/tools/safe_eval.py", line 285, in safe_eval
return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 377, in function_proxy
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "/home/servidor/apps/openerp-7.0/addons/purchase/purchase.py", line 561, in action_invoice_create
inv_id = inv_obj.create(cr, uid, inv_data, context=context)
File "/home/servidor/apps/openerp-7.0/addons/mail/mail_thread.py", line 252, in create
thread_id = super(mail_thread, self).create(cr, uid, values, context=context_operation)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 4561, in create
self.pool.get(object)._store_set_values(cr, user, ids, fields2, context)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 4714, in _store_set_values
result = self._columns[f].get(cr, self, ids, f, SUPERUSER_ID, context=context)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/fields.py", line 1145, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/servidor/apps/openerp-7.0/odoo-ecuador/l10n_ec-invoice_sequence/invoice.py", line 35, in _number
result[invoice.id] = invoice.invoice_number
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 502, in __getattr__
return self[name]
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 405, in __getitem__
field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 3679, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 3740, in _read_flat
if context.get('lang'):
AttributeError: 'str' object has no attribute 'get'
2014-10-13 20:20:52,440 9693 ERROR xxxxx openerp.netsvc: 'str' object has no attribute 'get'
Traceback (most recent call last):
File "/home/servidor/apps/openerp-7.0/server/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/servidor/apps/openerp-7.0/server/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/osv.py", line 222, in exec_workflow
res = self.exec_workflow_cr(cr, uid, obj, signal, *args)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/osv.py", line 215, in exec_workflow_cr
return object._workflow_signal(cr, uid, [res_id], signal)[res_id]
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 4002, in _workflow_signal
result[res_id] = wf_service.trg_validate(uid, self._name, res_id, signal, cr)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/wkf_service.py", line 119, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/instance.py", line 43, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 198, in _join_test
create(cr, [activity], inst_id, ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 52, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/workitem.py", line 127, in _execute
id_new = wkf_expr.execute(cr, ident, workitem, activity)
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/wkf_expr.py", line 67, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/home/servidor/apps/openerp-7.0/server/openerp/workflow/wkf_expr.py", line 57, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/home/servidor/apps/openerp-7.0/server/openerp/tools/safe_eval.py", line 285, in safe_eval
return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 377, in function_proxy
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "/home/servidor/apps/openerp-7.0/addons/purchase/purchase.py", line 561, in action_invoice_create
inv_id = inv_obj.create(cr, uid, inv_data, context=context)
File "/home/servidor/apps/openerp-7.0/addons/mail/mail_thread.py", line 252, in create
thread_id = super(mail_thread, self).create(cr, uid, values, context=context_operation)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 4561, in create
self.pool.get(object)._store_set_values(cr, user, ids, fields2, context)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 4714, in _store_set_values
result = self._columns[f].get(cr, self, ids, f, SUPERUSER_ID, context=context)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/fields.py", line 1145, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/servidor/apps/openerp-7.0/odoo-ecuador/l10n_ec-invoice_sequence/invoice.py", line 35, in _number
result[invoice.id] = invoice.invoice_number
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 502, in __getattr__
return self[name]
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 405, in __getitem__
field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 3679, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 3740, in _read_flat
if context.get('lang'):
AttributeError: 'str' object has no attribute 'get'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment