c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #18156
[Bug 720175] Re: Multicompany - all companies are selectable for users with restricted company access
Hello Dr. Ferdinand,
You've got the right catch.
There is nothing defined for the filtering of companies itself.
We may need to find a workaround for search() of companies.
On the other hand : If I am not wrong, this has led us to a problem of
limitation of record_rule that, we cannot define domains which contain
any relational field(to itself, like parent_id) or ID in domain. This
will cause max recursion.
However, this should be another bug.
Thanks.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/720175
Title:
Multicompany - all companies are selectable for users with restricted
company access
Status in OpenERP Server:
Confirmed
Bug description:
a user has only access rights to one company, but all companies show
up in all select fields for companies (because no access rul is set
for res_company)
I tried to copy the usual
['|','|',('company_id','=',False),('company_id','child_of',[user.company_id.id]),('company_id.child_ids','child_of',[user.company_id.id])]
but this gives an error.
References