Record rules with domain blank or [] result in application error
Bug #719406 reported by
LMK
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP's Framework R&D |
Bug Description
1. In v6.0.1, create any record rule with empty domain [].
2. Log in with user other than admin and pull up any view that invokes above rule, following application error will be reported:
File "C:\Program Files\OpenERP 6.0\Server\
File "osv\orm.pyo", line 3823, in _where_calc
File "osv\expression
IndexError: pop from empty list
Related branches
lp:~openerp-dev/openobject-server/6.0-bug-719406-empty-record-rules-vmt
- Olivier Dony (Odoo): Approve
-
Diff: 290 lines (+188/-18)5 files modifiedbin/addons/base/__openerp__.py (+1/-0)
bin/addons/base/ir/ir_rule.py (+34/-16)
bin/addons/base/res/res_company.py (+5/-1)
bin/addons/base/res/res_security.xml (+1/-1)
bin/addons/base/test/test_ir_rule.yml (+147/-0)
Changed in openobject-server: | |
status: | Incomplete → Confirmed |
importance: | Undecided → Medium |
milestone: | none → 6.0.2 |
assignee: | nobody → Jay Vora (OpenERP) (jvo-openerp) |
summary: |
- Record rules with domain [] result in application error + Record rules with domain blank or [] result in application error |
Changed in openobject-server: | |
assignee: | Jay Vora (OpenERP) (jvo-openerp) → OpenERP's Framework R&D (openerp-dev-framework) |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
Changed in openobject-server: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Hello,
I have tested your scenario with latest trunk. But all are working fine.
I have created a one record rule for the particular group with domain="[ ] " and login with the another user which have assign this group and this is working fine.
So would you please provide the more information or proper example to reproduce this error.
I have attached a video for your reference, So please check it and notify me where you faced the problem.
Thanks.