Skip to content

Instantly share code, notes, and snippets.

@ovnicraft
Created May 16, 2012 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ovnicraft/2714186 to your computer and use it in GitHub Desktop.
Save ovnicraft/2714186 to your computer and use it in GitHub Desktop.
Environment Information :
System : Linux-2.6.32-21-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-21-generic
Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.4
Last revision No. & ID :1946 launchpad_translations_on_behalf_of_openerp-20120315050000-y2vm4dpxrrgwoyx9
Traceback (most recent call last):
File "/home/ovnicraft/openerp/server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/ovnicraft/openerp/server/bin/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/home/ovnicraft/openerp/server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/ovnicraft/openerp/server/bin/osv/osv.py", line 196, in exec_workflow
res = self.exec_workflow_cr(cr, uid, obj, method, *args)
File "/home/ovnicraft/openerp/server/bin/osv/osv.py", line 189, in exec_workflow_cr
return wf_service.trg_validate(uid, obj, args[0], method, cr)
File "/home/ovnicraft/openerp/server/bin/workflow/wkf_service.py", line 80, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/home/ovnicraft/openerp/server/bin/workflow/instance.py", line 48, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/home/ovnicraft/openerp/server/bin/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/ovnicraft/openerp/server/bin/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/ovnicraft/openerp/server/bin/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/ovnicraft/openerp/server/bin/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/home/ovnicraft/openerp/server/bin/workflow/workitem.py", line 53, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/home/ovnicraft/openerp/server/bin/workflow/workitem.py", line 107, in _execute
wkf_expr.execute(cr, ident, workitem, activity)
File "/home/ovnicraft/openerp/server/bin/workflow/wkf_expr.py", line 68, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/home/ovnicraft/openerp/server/bin/workflow/wkf_expr.py", line 58, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/home/ovnicraft/openerp/server/bin/tools/safe_eval.py", line 284, in safe_eval
return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
File "/home/ovnicraft/openerp/server/bin/osv/orm.py", line 181, in <lambda>
return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
File "/home/ovnicraft/openerp/proyectos/fya/addons/academic_enrollment/academic_enrollment.py", line 410, in action_draft_pending
self.write(cr, uid, ids, {'tuition_invoice' : one_enrollment.matricular(), 'state' : 'pending'}, context)
File "/home/ovnicraft/openerp/server/bin/osv/orm.py", line 181, in <lambda>
return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
File "/home/ovnicraft/openerp/proyectos/fya/addons/academic_enrollment/academic_enrollment.py", line 375, in matricular
inv_id = inv_obj.create(cr, uid, inv)
UnboundLocalError: local variable 'inv' referenced before assignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment