[Setting] group record rules not displayed with empty name field

Bug #1155558 reported by Gilles Major (OpenERP) on 2013-03-15
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Medium
OpenERP's Framework R&D

Bug Description

Use Case
1. logon to a db_all on runbot
2. Go to User => Groups => create a group
3. Go to Rules tab, create a rule
4. Leave name field empty, select an object, do not add anything in groups (must be global), save and close
5. save the group => the rule disappears
6. If you go to Security => Record Rules, you can find that rule and see that it is still associated with the correct group

What to do:
The rule should still be displayed after saving even if the name field is empty

I found the source of the problem. res.groups and ir.rules are linked using a m2m. The res.groups-side of the m2m has a domain on it: [('global', '=', False)] . global is a function field on ir.rules which is true if the rule is not linked to any group. You see the incoherence?

Changed in openobject-server:
status: New → Confirmed
status: Confirmed → New
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers