credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #02095
[Bug 907793] [NEW] bool' object is unsubscriptable passing a purchase order
Public bug reported:
Hi,
I'm trying to convert to "purchase order" a "Request for quotation
purchase order" and system returns this:
Environment Information :
System : Linux-3.0.0-14-generic-x86_64-with-Ubuntu-11.10-oneiric
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
Operating System Release : 3.0.0-14-generic
Operating System Version : #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011
Operating System Architecture : 64bit
Operating System Locale : ca_ES.UTF-8
Python Version : 2.7.2+
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/home/openerp/src/6.0-development/openerp-server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/openerp/src/6.0-development/openerp-server/bin/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/home/openerp/src/6.0-development/openerp-server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/openerp/src/6.0-development/openerp-server/bin/osv/osv.py", line 196, in exec_workflow
res = self.exec_workflow_cr(cr, uid, obj, method, *args)
File "/home/openerp/src/6.0-development/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/openerp/src/6.0-development/openerp-server/bin/workflow/wkf_service.py", line 80, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/instance.py", line 48, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 53, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 126, in _execute
id_new = wkf_expr.execute(cr, ident, workitem, activity)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/wkf_expr.py", line 68, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/wkf_expr.py", line 58, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/home/openerp/src/6.0-development/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/openerp/src/6.0-development/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/openerp/src/6.0-development/openerp-server/bin/addons/purchase/purchase.py", line 368, in action_invoice_create
il.append(self.inv_line_create(cr, uid, a, ol))
File "/home/openerp/src/6.0-development/addons-training-bzr/training/invoice.py", line 98, in inv_line_create
a_journal_id = proxy_journal.read(cr, uid, [ journal_list[0] ], ['analytic_journal_id'])[0]['analytic_journal_id'][0]
TypeError: 'bool' object is unsubscriptable
As you can see i've got installed training module.
I've got an accout.journalfor purchases but i don't find
analytic_journal_id as field in account.journal.
My server is a Dell Power edge 2950 with Debian Lenny and OpenERP v6.0
and training version 6.0.0.5.
Could you help me?
Thanks
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/907793
Title:
bool' object is unsubscriptable passing a purchase order
Status in OpenERP Addons (modules):
New
Bug description:
Hi,
I'm trying to convert to "purchase order" a "Request for quotation
purchase order" and system returns this:
Environment Information :
System : Linux-3.0.0-14-generic-x86_64-with-Ubuntu-11.10-oneiric
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
Operating System Release : 3.0.0-14-generic
Operating System Version : #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011
Operating System Architecture : 64bit
Operating System Locale : ca_ES.UTF-8
Python Version : 2.7.2+
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/home/openerp/src/6.0-development/openerp-server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/openerp/src/6.0-development/openerp-server/bin/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/home/openerp/src/6.0-development/openerp-server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/openerp/src/6.0-development/openerp-server/bin/osv/osv.py", line 196, in exec_workflow
res = self.exec_workflow_cr(cr, uid, obj, method, *args)
File "/home/openerp/src/6.0-development/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/openerp/src/6.0-development/openerp-server/bin/workflow/wkf_service.py", line 80, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/instance.py", line 48, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 53, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/workitem.py", line 126, in _execute
id_new = wkf_expr.execute(cr, ident, workitem, activity)
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/wkf_expr.py", line 68, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/home/openerp/src/6.0-development/openerp-server/bin/workflow/wkf_expr.py", line 58, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/home/openerp/src/6.0-development/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/openerp/src/6.0-development/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/openerp/src/6.0-development/openerp-server/bin/addons/purchase/purchase.py", line 368, in action_invoice_create
il.append(self.inv_line_create(cr, uid, a, ol))
File "/home/openerp/src/6.0-development/addons-training-bzr/training/invoice.py", line 98, in inv_line_create
a_journal_id = proxy_journal.read(cr, uid, [ journal_list[0] ], ['analytic_journal_id'])[0]['analytic_journal_id'][0]
TypeError: 'bool' object is unsubscriptable
As you can see i've got installed training module.
I've got an accout.journalfor purchases but i don't find
analytic_journal_id as field in account.journal.
My server is a Dell Power edge 2950 with Debian Lenny and OpenERP
v6.0 and training version 6.0.0.5.
Could you help me?
Thanks
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/907793/+subscriptions
Follow ups
References