← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 790405] [NEW] nan_product_pack recursion depth exceeded

 

Public bug reported:

Hello,

 i user nan_product_pack on 6.0.2 and get this. could someone help please ?
Thanks in advance.

 File "/opt/openerp/6.0/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/opt/openerp/6.0/server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/6.0/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/6.0/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/6.0/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/6.0/server/bin/osv/orm.py", line 2942, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/opt/openerp/6.0/server/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 "/opt/openerp/6.0/server/bin/osv/fields.py", line 800, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/opt/openerp/6.0/addons/stock/product.py", line 323, in _product_available
    stock = self.get_product_available(cr, uid, ids, context=c)
  File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 69, in get_product_available
    subproducts_stock = self.get_product_available( cr, uid, [ line.product_id.id for line in product.pack_line_ids ], context=context )
 
  
  File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 69, in get_product_available
    subproducts_stock = self.get_product_available( cr, uid, [ line.product_id.id for line in product.pack_line_ids ], context=context )
 
[....]

  File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 69, in get_product_available
    subproducts_stock = self.get_product_available( cr, uid, [ line.product_id.id for line in product.pack_line_ids ], context=context )
  File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 69, in get_product_available
    subproducts_stock = self.get_product_available( cr, uid, [ line.product_id.id for line in product.pack_line_ids ], context=context )
  File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 69, in get_product_available
    subproducts_stock = self.get_product_available( cr, uid, [ line.product_id.id for line in product.pack_line_ids ], context=context )
  File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 56, in get_product_available
    stock = super( product_product, self ).get_product_available( cr, uid, [ product.id ], context=context )
  File "/opt/openerp/6.0/addons/stock/product.py", line 221, in get_product_available
    child_location_ids = self.pool.get('stock.location').search(cr, uid, [('location_id', 'child_of', location_ids)])
  File "/opt/openerp/6.0/server/bin/osv/orm.py", line 1743, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/opt/openerp/6.0/server/bin/osv/orm.py", line 4012, in _search
    query = self._where_calc(cr, user, args, context=context)
  File "/opt/openerp/6.0/server/bin/osv/orm.py", line 3865, in _where_calc
    e.parse(cr, user, self, context)
  File "/opt/openerp/6.0/server/bin/osv/expression.py", line 290, in parse
    dom = _rec_get(ids2, working_table, parent=left)
  File "/opt/openerp/6.0/server/bin/osv/expression.py", line 96, in _rec_get
    doms += ['&', ('parent_left', '<', o.parent_right), ('parent_left', '>=', o.parent_left)]
  File "/opt/openerp/6.0/server/bin/osv/orm.py", line 292, in __getattr__
    return self[name]
  File "/opt/openerp/6.0/server/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 "/opt/openerp/6.0/server/bin/osv/orm.py", line 2942, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/opt/openerp/6.0/server/bin/osv/orm.py", line 2964, in _read_flat
    rule_clause, rule_params, tables = self.pool.get('ir.rule').domain_get(cr, user, self._name, 'read', context=context)
  File "/opt/openerp/6.0/server/bin/addons/base/ir/ir_rule.py", line 155, in domain_get
    dom = self._compute_domain(cr, uid, model_name, mode=mode)
  File "/opt/openerp/6.0/server/bin/tools/misc.py", line 815, in cached_result
    result[id] = self.cache[key][0]
  File "/opt/openerp/6.0/server/bin/tools/func.py", line 89, in wrapper
    return func(self, *args, **kwargs)
  File "/opt/openerp/6.0/server/bin/tools/lru.py", line 38, in __getitem__
    self[a[0]] = a[1]
  File "/opt/openerp/6.0/server/bin/tools/func.py", line 89, in wrapper
    return func(self, *args, **kwargs)
  File "/opt/openerp/6.0/server/bin/tools/lru.py", line 44, in __setitem__
    del self[obj]
  File "/opt/openerp/6.0/server/bin/tools/func.py", line 91, in wrapper
    lock.release()
  File "/usr/lib/python2.6/threading.py", line 147, in release
    self._note("%s.release(): non-final release", self)
RuntimeError: maximum recursion depth exceeded

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/790405

Title:
  nan_product_pack recursion depth exceeded

Status in OpenERP Modules (addons):
  New

Bug description:
  Hello,

   i user nan_product_pack on 6.0.2 and get this. could someone help please ?
  Thanks in advance.

   File "/opt/openerp/6.0/server/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/opt/openerp/6.0/server/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/opt/openerp/6.0/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/openerp/6.0/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/openerp/6.0/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/openerp/6.0/server/bin/osv/orm.py", line 2942, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/opt/openerp/6.0/server/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 "/opt/openerp/6.0/server/bin/osv/fields.py", line 800, in get
      res = self._fnct(obj, cr, user, ids, name, self._arg, context)
    File "/opt/openerp/6.0/addons/stock/product.py", line 323, in _product_available
      stock = self.get_product_available(cr, uid, ids, context=c)
    File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 69, in get_product_available
      subproducts_stock = self.get_product_available( cr, uid, [ line.product_id.id for line in product.pack_line_ids ], context=context )
   
    
    File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 69, in get_product_available
      subproducts_stock = self.get_product_available( cr, uid, [ line.product_id.id for line in product.pack_line_ids ], context=context )
   
  [....]

    File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 69, in get_product_available
      subproducts_stock = self.get_product_available( cr, uid, [ line.product_id.id for line in product.pack_line_ids ], context=context )
    File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 69, in get_product_available
      subproducts_stock = self.get_product_available( cr, uid, [ line.product_id.id for line in product.pack_line_ids ], context=context )
    File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 69, in get_product_available
      subproducts_stock = self.get_product_available( cr, uid, [ line.product_id.id for line in product.pack_line_ids ], context=context )
    File "/opt/openerp/6.0/addons-extra/nan_product_pack/pack.py", line 56, in get_product_available
      stock = super( product_product, self ).get_product_available( cr, uid, [ product.id ], context=context )
    File "/opt/openerp/6.0/addons/stock/product.py", line 221, in get_product_available
      child_location_ids = self.pool.get('stock.location').search(cr, uid, [('location_id', 'child_of', location_ids)])
    File "/opt/openerp/6.0/server/bin/osv/orm.py", line 1743, in search
      return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
    File "/opt/openerp/6.0/server/bin/osv/orm.py", line 4012, in _search
      query = self._where_calc(cr, user, args, context=context)
    File "/opt/openerp/6.0/server/bin/osv/orm.py", line 3865, in _where_calc
      e.parse(cr, user, self, context)
    File "/opt/openerp/6.0/server/bin/osv/expression.py", line 290, in parse
      dom = _rec_get(ids2, working_table, parent=left)
    File "/opt/openerp/6.0/server/bin/osv/expression.py", line 96, in _rec_get
      doms += ['&', ('parent_left', '<', o.parent_right), ('parent_left', '>=', o.parent_left)]
    File "/opt/openerp/6.0/server/bin/osv/orm.py", line 292, in __getattr__
      return self[name]
    File "/opt/openerp/6.0/server/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 "/opt/openerp/6.0/server/bin/osv/orm.py", line 2942, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/opt/openerp/6.0/server/bin/osv/orm.py", line 2964, in _read_flat
      rule_clause, rule_params, tables = self.pool.get('ir.rule').domain_get(cr, user, self._name, 'read', context=context)
    File "/opt/openerp/6.0/server/bin/addons/base/ir/ir_rule.py", line 155, in domain_get
      dom = self._compute_domain(cr, uid, model_name, mode=mode)
    File "/opt/openerp/6.0/server/bin/tools/misc.py", line 815, in cached_result
      result[id] = self.cache[key][0]
    File "/opt/openerp/6.0/server/bin/tools/func.py", line 89, in wrapper
      return func(self, *args, **kwargs)
    File "/opt/openerp/6.0/server/bin/tools/lru.py", line 38, in __getitem__
      self[a[0]] = a[1]
    File "/opt/openerp/6.0/server/bin/tools/func.py", line 89, in wrapper
      return func(self, *args, **kwargs)
    File "/opt/openerp/6.0/server/bin/tools/lru.py", line 44, in __setitem__
      del self[obj]
    File "/opt/openerp/6.0/server/bin/tools/func.py", line 91, in wrapper
      lock.release()
    File "/usr/lib/python2.6/threading.py", line 147, in release
      self._note("%s.release(): non-final release", self)
  RuntimeError: maximum recursion depth exceeded


Follow ups

References