Error in evaluation of record rule.

Bug #558369 reported by Christophe CRIER
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Hello,

In a record rule when you add a rule in 'Force Domain' field, and you put more operator than you have oerand a traceback appear on server when the evaluation of rule occured.

[2010-04-08 12:37:52,322] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home/cch/synchro/travail/20100408_bzr_openerp_trunk/server/bin/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/cch/synchro/travail/20100408_bzr_openerp_trunk/server/bin/osv/osv.py", line 118, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/cch/synchro/travail/20100408_bzr_openerp_trunk/server/bin/osv/osv.py", line 108, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/cch/synchro/travail/20100408_bzr_openerp_trunk/server/bin/osv/orm.py", line 3554, in search
    dom = self.pool.get('ir.rule').domain_get(cr, user, self._name, 'read', context=context)
  File "/home/cch/synchro/travail/20100408_bzr_openerp_trunk/server/bin/tools/misc.py", line 800, in cached_result
    result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
  File "/home/cch/synchro/travail/20100408_bzr_openerp_trunk/server/bin/addons/base/ir/ir_rule.py", line 152, in domain_get
    d1,d2,tables = self.pool.get(model_name)._where_calc(cr, uid, dom, active_test=False)
  File "/home/cch/synchro/travail/20100408_bzr_openerp_trunk/server/bin/osv/orm.py", line 3515, in _where_calc
    qu1, qu2 = e.to_sql()
  File "/home/cch/synchro/travail/20100408_bzr_openerp_trunk/server/bin/osv/expression.py", line 443, in to_sql
    q2 = stack.pop()
IndexError: pop from empty list

Revision history for this message
rvo(Open ERP) (rvo-openerp) wrote :

Hello,

Can you please provide example to reproduce this error?

Thanks

Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

Hello Christophe CRIER,

   It has been already fixed. It doesn't seem to be a bug any more. Do reopen if you think the error still exists.

Thanks.

Changed in openobject-server:
milestone: none → 6.0
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.