partner search & record rules & muliticompanies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP's Framework R&D | ||
7.0 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The search function of the partner view don't work when there is a acces rules change.
For example, in a multi compagnies context: if there is a access rules change on "res.partner company" like:
only see the partner of your company and his childs: ['|',('
Before the access rules was : "res.partner company" ['|','|
the access rules work fine, a user in a new company can see only the partner of his company, BUT
the search function of the tree form always return an "access denied", so it's not possible to filter the partner list.
The message is:
Access Denied
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: Partner, Operation: read)
It's problably the "name_search" function in partner class who don't take care of access rule.
Related branches
- Fabien (Open ERP): Needs Fixing
-
Diff: 13 lines (+1/-2)1 file modifiedopenerp/addons/base/res/res_partner.py (+1/-2)
Changed in openobject-server: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
Changed in openobject-server: | |
milestone: | none → 7.0 |
description: | updated |
Hello,
See the lp:1085981 (producible steps).
Thank you!