Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

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

by
seawind
- 26/09/2018 20:39:43
Thanks Dominique, I was considering that workaround as an option but I would think there must be a better way in Odoo to do so.
I appreciate your interest and your support.
Beatriz


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, September 25, 2018 5:16 PM, Dominique k <dominique.k@elico-corp.com.sg> wrote:

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.

_______________________________________________

_______________________________________________
Post to: mailto:contributors@odoo-community.org