Maximum Recursion Depth Exceeded

Asked by Sebby Bey

Hi All

When i try to update the stocks quantity, i get this error. Any help will be appreciated... I am testing openERP

Traceback (most recent call last):
  File "/opt/openerp/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/opt/openerp/server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/server/bin/addons/stock/wizard/stock_change_product_qty.py", line 100, in change_product_qty
    inventry_obj.action_done(cr, uid, [inventory_id], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 2540, in action_done
    move_obj.action_done(cr, uid, [x.id for x in inv.move_ids], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 2115, in action_done
    self.action_confirm(cr, uid, todo, context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1863, in action_confirm
    self.create_chained_picking(cr, uid, moves, context)
  File "/opt/openerp/server/bin/addons/mrp/stock.py", line 35, in create_chained_picking
    new_moves = super(StockMove, self).create_chained_picking(cr, uid, moves, context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1816, in create_chained_picking
    for picking, todo in self._chain_compute(cr, uid, moves, context=context).items():
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1781, in _chain_compute
    res2 = self._chain_compute(cr, uid, [m], context=context)
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1774, in _chain_compute
    'location_dest_id': dest[0].id})
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1621, in write
    return super(stock_move, self).write(cr, uid, ids, vals, context=context)
  File "/opt/openerp/server/bin/osv/orm.py", line 3449, in write
    self._validate(cr, user, ids, context)
  File "/opt/openerp/server/bin/osv/orm.py", line 926, in _validate
    if not fun(self, cr, uid, ids):
  File "/opt/openerp/server/bin/addons/stock/stock.py", line 1497, in _check_tracking
    if not move.prodlot_id and \
  File "/opt/openerp/server/bin/osv/orm.py", line 292, in __getattr__
    return self[name]
  File "/opt/openerp/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/server/bin/osv/orm.py", line 2940, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/opt/openerp/server/bin/osv/orm.py", line 2962, 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/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/server/bin/tools/misc.py", line 815, in cached_result
    result[id] = self.cache[key][0]
  File "/opt/openerp/server/bin/tools/func.py", line 89, in wrapper
    return func(self, *args, **kwargs)
  File "/opt/openerp/server/bin/tools/lru.py", line 38, in __getitem__
    self[a[0]] = a[1]
  File "/opt/openerp/server/bin/tools/func.py", line 89, in wrapper
    return func(self, *args, **kwargs)
  File "/opt/openerp/server/bin/tools/lru.py", line 44, in __setitem__
    del self[obj]
  File "/opt/openerp/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

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Sebby Bey
Solved:
Last query:
Last reply:

This question was originally filed as bug #891474.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#1

Its a configuration mistake.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#2

Dear Sebby,

This is more like a configuration mistake where the configuration of your 'Stock' location says that the chained location is stock itself with 'Automatic No Step Added' and Fixed type of location.

You should never set same location as chained destination.

Correcting that configuration works fine at my end with your DB.

Hope this helps.

Thanks,
Serpent Consulting Services.
http://www.serpentcs.com

Revision history for this message
Sebby Bey (sebbybey) said :
#3

Hi, can you backup the corrected db and send to me?

Rgrds,

Revision history for this message
Sebby Bey (sebbybey) said :
#4

thanks

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#5

Sebby,

You are welcome.

I will provide you an easiest and quickest way to do it rather than sending the DB and do the heavy stuff.

In your DB,
Go to the menu Warehouse/Configuration/Warehouse Management/Locations.

Select the Stock location.

Your record will match with this image : http://imgur.com/hyhnQ

Change it acc. do this image : http://imgur.com/arZPa

The Chain location type should be None and set empty location as chained.

Hope it heps.

Thanks,
Serpent Consulting Services.

Revision history for this message
Sebby Bey (sebbybey) said :
#6

I have a small query! In a situation where the debited account does not give out the product of the values, for instance if i order 10 items at a cost of 200/= each the value is not computed but only 200 which is the sale price is debited... the credited account works like charm... what might be the error configuration?

Revision history for this message
Sebby Bey (sebbybey) said :
#7

Again when receiving goods, or dispatching goods from warehouse... I get this error - Output Account defined on this product and Variant account on category of this product are same.