Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Activate features just for one company in a multicompany environment
by
seawind
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 advanceBeatriz ArellanoSent with ProtonMail Secure Email._______________________________________________Mailing-List: https://odoo-community.org/groups/contributors-15Post to: mailto:contributors@odoo-community.orgUnsubscribe: https://odoo-community.org/groups?unsubscribe_______________________________________________Mailing-List: https://odoo-community.org/groups/contributors-15Post to: mailto:contributors@odoo-community.orgUnsubscribe: https://odoo-community.org/groups?unsubscribe
Reference
-
Activate features just for one company in a multicompany environment
byseawind-
Re: Activate features just for one company in a multicompany environment
byseawind -
Re: Activate features just for one company in a multicompany environment
bydominique.k
-