openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #20427
[Bug 1094212] [NEW] partner search & record rules & muliticompanies
Public bug reported:
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: ['|',('company_id','child_of',[user.company_id.id]),('company_id','=',False)]
Before the access rules was : "res.partner company"
['|','|',('company_id.child_ids','child_of',[user.company_id.id]),('company_id','child_of',[user.company_id.id]),('company_id','=',False)]
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.
** Affects: openobject-server
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1094212
Title:
partner search & record rules & muliticompanies
Status in OpenERP Server:
New
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: ['|',('company_id','child_of',[user.company_id.id]),('company_id','=',False)]
Before the access rules was : "res.partner company"
['|','|',('company_id.child_ids','child_of',[user.company_id.id]),('company_id','child_of',[user.company_id.id]),('company_id','=',False)]
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1094212/+subscriptions
Follow ups
-
[Bug 1094212] Re: partner search & record rules & muliticompanies
From: Ahmet Altınışık, 2013-03-10
-
[Bug 1094212] Re: partner search & record rules & muliticompanies
From: Serpent Consulting Services, 2013-02-25
-
[Bug 1094212] Re: partner search & record rules & muliticompanies
From: Xavier ALT (OpenERP), 2013-02-25
-
[Bug 1094212] Re: partner search & record rules & muliticompanies
From: Joannes Landy, 2013-02-07
-
[Bug 1094212] Re: partner search & record rules & muliticompanies
From: Joannes Landy, 2013-01-03
-
[Bug 1094212] Re: partner search & record rules & muliticompanies
From: Niels Huylebroeck, 2013-01-03
-
[Bug 1094212] Re: partner search & record rules & muliticompanies
From: Niels Huylebroeck, 2013-01-03
-
[Bug 1094212] Re: partner search & record rules & muliticompanies
From: Launchpad Bug Tracker, 2013-01-03
-
[Bug 1094212] Re: partner search & record rules & muliticompanies
From: Amit Bhavsar (Open ERP), 2013-01-01
-
[Bug 1094212] Re: partner search & record rules & muliticompanies
From: Amit Parik (OpenERP), 2013-01-01
-
[Bug 1094212] [NEW] partner search & record rules & muliticompanies
From: Joannes Landy, 2012-12-28
References