c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #27493
[Bug 802958] Re: company rule. Companies availables, not childreen
Hello Raimon,
Multicompany access is always decided by the current company chosen in the user preferences. For example, the Projects a user can see always depend on the "current company" in the preferences, not on "all the companies this user belongs to".
This is very important, if you don't do that, you quickly start getting inconsistencies, like 2 related objects that belong to unrelated companies (maybe one user belongs to these 2 companies, but all the colleagues do not!). And this is true for the list of "companies" too.
If a user wants to change the company of a document to another (related company), she needs to select the parent company in user preferences, and then do it (for example this prevents moving to a different company that is not a sister or child company)
The rule you suggest bypasses this, so it is not a good default, but
feel free to use it if you think it works for your needs.
I hope this is clear..
Thanks!
** Changed in: openobject-server
Status: New => Invalid
--
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/802958
Title:
company rule. Companies availables, not childreen
Status in OpenERP Server:
Invalid
Bug description:
For default, companie rules are:
[('id','child_of',[user.company_id.id])]
This rule only change others companies childreen. But, what happen
when you are at children company? You do not change parent company or
another company childreen.
This rule is better because you can change another company (childreen
or not childreen) availables for user:
['|',('id','in',[x.id for x in
user.company_ids]),('id','child_of',[user.company_id.id])]
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/802958/+subscriptions
References