Tuesday, September 15, 2020
1 change · master
Resolved issues and error corrections
Odoo now prevents user groups from being deleted when they are still linked to record access rules. This avoids accidentally making those rules apply to everyone, which could disrupt access to business records.
Original PR description
**Description of the issue/feature this PR addresses:** With a wrong manipulation you can unlink a group. During unlink - the `ir.model.access` is also unlink, - `ir.rule` are not unlink and become global **Current behavior before PR:** Go to runbot. Unlink Portal groups --> all Portal `ir.rule` become global --> there are lot of issue with access (you don't see all records). **Desired behavior after PR is merged:** You cannot unlink a group if it is used. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr