c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #02892
[Bug 672362] [NEW] Error duplicating a product
Public bug reported:
After upgrading to openerp server 5.15, when I try to duplicate a
product, I get the following error:
Environment Information :
System : Linux-2.6.35-23-generic-i686-with-Ubuntu-10.10-maverick
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
Operating System Release : 2.6.35-23-generic
Operating System Version : #36-Ubuntu SMP Tue Oct 26 17:03:18 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 5.0.12
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/netsvc.py", line 299, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/netsvc.py", line 77, in __call__
return getattr(self, method)(*params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/service/web_services.py", line 577, in execute
res = service.execute(db, uid, object, method, *args)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/osv.py", line 58, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/osv.py", line 119, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/osv.py", line 111, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/addons/product_variant_multi/product_variant.py", line 191, in copy
return super(product_product, self).copy(cr, uid, id, default, context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/addons/product/product.py", line 548, in copy
context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3210, in copy
self.copy_translations(cr, uid, id, new_id, context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3186, in copy_translations
target_obj.copy_translations(cr, uid, old_child, new_child, context=context)
(.... cut many duplicated lines)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3186, in copy_translations
target_obj.copy_translations(cr, uid, old_child, new_child, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3186, in copy_translations
target_obj.copy_translations(cr, uid, old_child, new_child, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3179, in copy_translations
old_record, new_record = self.read(cr, uid, [old_id, new_id], [field_name], context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 2229, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 2336, in _read_flat
res2 = self.pool.get(table).read(cr, user, [x[col] for x in res], cols, context, load)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 2229, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 2376, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/fields.py", line 425, in get
ids2 = obj.pool.get(self._obj).search(cr, user, [(self._fields_id, 'in', ids)], limit=self._limit, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3049, in search
(qu1, qu2, tables) = self._where_calc(cr, user, args, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3028, in _where_calc
e = expression.expression(args)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/expression.py", line 71, in __init__
if not reduce(lambda acc, val: acc and (self._is_operator(val) or self._is_leaf(val)), exp, True):
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/expression.py", line 71, in <lambda>
if not reduce(lambda acc, val: acc and (self._is_operator(val) or self._is_leaf(val)), exp, True):
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/expression.py", line 37, in _is_operator
return isinstance(element, (str, unicode)) and element in ['&', '|', '!']
RuntimeError: maximum recursion depth exceeded while calling a Python object
** Affects: openobject-addons
Importance: Undecided
Status: New
--
Error duplicating a product
https://bugs.launchpad.net/bugs/672362
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Addons Modules: New
Bug description:
After upgrading to openerp server 5.15, when I try to duplicate a product, I get the following error:
Environment Information :
System : Linux-2.6.35-23-generic-i686-with-Ubuntu-10.10-maverick
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
Operating System Release : 2.6.35-23-generic
Operating System Version : #36-Ubuntu SMP Tue Oct 26 17:03:18 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 5.0.12
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/netsvc.py", line 299, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/netsvc.py", line 77, in __call__
return getattr(self, method)(*params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/service/web_services.py", line 577, in execute
res = service.execute(db, uid, object, method, *args)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/osv.py", line 58, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/osv.py", line 119, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/osv.py", line 111, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/addons/product_variant_multi/product_variant.py", line 191, in copy
return super(product_product, self).copy(cr, uid, id, default, context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/addons/product/product.py", line 548, in copy
context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3210, in copy
self.copy_translations(cr, uid, id, new_id, context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3186, in copy_translations
target_obj.copy_translations(cr, uid, old_child, new_child, context=context)
(.... cut many duplicated lines)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3186, in copy_translations
target_obj.copy_translations(cr, uid, old_child, new_child, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3186, in copy_translations
target_obj.copy_translations(cr, uid, old_child, new_child, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3179, in copy_translations
old_record, new_record = self.read(cr, uid, [old_id, new_id], [field_name], context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 2229, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 2336, in _read_flat
res2 = self.pool.get(table).read(cr, user, [x[col] for x in res], cols, context, load)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 2229, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 2376, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/fields.py", line 425, in get
ids2 = obj.pool.get(self._obj).search(cr, user, [(self._fields_id, 'in', ids)], limit=self._limit, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3049, in search
(qu1, qu2, tables) = self._where_calc(cr, user, args, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/orm.py", line 3028, in _where_calc
e = expression.expression(args)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/expression.py", line 71, in __init__
if not reduce(lambda acc, val: acc and (self._is_operator(val) or self._is_leaf(val)), exp, True):
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/expression.py", line 71, in <lambda>
if not reduce(lambda acc, val: acc and (self._is_operator(val) or self._is_leaf(val)), exp, True):
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9010/osv/expression.py", line 37, in _is_operator
return isinstance(element, (str, unicode)) and element in ['&', '|', '!']
RuntimeError: maximum recursion depth exceeded while calling a Python object
Follow ups
References