Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Activate features just for one company in a multicompany environment

by
dominique.k
- 26/09/2018 02:07:41
Python code on the back end can be executed according to company. Create a flag on the company, and check it before executing the custom code.

For views, I am not aware of any way to have different XML be company specific..

For few elements within a view, I think you could make then invisible according to a flag, that can be evaluated in python (so the flag can indicate whether or not to show the field). 

Hope this help...



On Fri, Sep 21, 2018, 07:31 Beatriz Arellano <seawind@protonmail.com> wrote:

Hi everyone,

I am developing an addon for a multi-company environment, I need to activate the addon's features just for one company. I need to say that companies share users, some users can have access to several companies, and that's why creating a security group and assigning it to some users wouldn't work in this case.

Is there a way to activate a feature just for one of the companies even when some users can access more than one company?

Thanks in advance
Beatriz Arellano


Sent with ProtonMail Secure Email.

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe