c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #37478
[Bug 811122] Re: AttributeError: 'cursor' object has no attribute 'pool'
Army(OpenERP),
The error has appeared, but it doesn't seem to be a bug really.
This is more like a programmer's fault. When you forget to write
method=True in your definition of fields.function and your method is a
real method, this is gonna happen.
Moreover, you seem to be using not-the-updated code.
Thanks,
Serpent Consulting Services.
** Changed in: openobject-addons
Status: New => Invalid
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/811122
Title:
AttributeError: 'cursor' object has no attribute 'pool'
Status in OpenERP Addons (modules):
Invalid
Bug description:
dear all openerp developer,
i got error when i convert a purchase order .. in user purchase..
but in admin user its not error.
[2011-07-15 22:26:08,059][stock] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/osv/osv.py", line 196, in exec_workflow
res = self.exec_workflow_cr(cr, uid, obj, method, *args)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/osv/osv.py", line 189, in exec_workflow_cr
return wf_service.trg_validate(uid, obj, args[0], method, cr)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/wkf_service.py", line 80, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/instance.py", line 48, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 53, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/workitem.py", line 126, in _execute
id_new = wkf_expr.execute(cr, ident, workitem, activity)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/wkf_expr.py", line 68, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/workflow/wkf_expr.py", line 58, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/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/apopenerp/OpenERP-v6/openerp-server/6.0/bin/osv/orm.py", line 181, in <lambda>
return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
File "/home/apopenerp/OpenObject/adsoft-project/ad_product_2nd_uom/purchase.py", line 30, in action_picking_create
result = super(purchase_order, self).action_picking_create(cr, uid, ids, *args)
File "/home/apopenerp/OpenObject/adsoft-project/purchase/purchase.py", line 432, in action_picking_create
loc_id = order.partner_id.property_stock_supplier.id
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/osv/orm.py", line 292, in __getattr__
return self[name]
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/osv/orm.py", line 205, in __getitem__
field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/osv/orm.py", line 2942, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/osv/orm.py", line 3053, in _read_flat
res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/osv/fields.py", line 802, in get
res = self._fnct(cr, obj._table, ids, name, self._arg, context)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/osv/fields.py", line 1054, in _fnct_read
properties = obj.pool.get('ir.property')
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/sql_db.py", line 78, in wrapper
return f(self, *args, **kwargs)
File "/home/apopenerp/OpenERP-v6/openerp-server/6.0/bin/sql_db.py", line 237, in __getattr__
return getattr(self._obj, name)
AttributeError: 'cursor' object has no attribute 'pool'
thanks :)
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/811122/+subscriptions