Skip to Content
Menu
This question has been flagged
4 Replies
3058 Views

Hii,

We have 4 companies in our odoo 12 EE installation. We have done customization in all standard modules (python code and xml views).
These customization was for one company and its working fine. Later on we added more companies and all customization is being applied to all companies.

How to make customization company specific?
What are the recommendations from Odoo?

Please guide.    

Thanks

 

Avatar
Discard

When doing customizations, create your own modules and do not change the standard modules: https://goo.gl/4Zyc9d

Best Answer

It will be always better to create new  addons for the customization's instead of editing the standard modules itself. Else you may need to do all these changes manually each time you upgrade the odoo to latest commits. If you need to have certain customization specific for a company, relate them to the particular company_id


Thanks,


iWesabe

Avatar
Discard
Author

I know that to create new addons... my question is how to relate customization with particular company_id.... I need python code example and xml code example.....

Best Answer

1. When doing customizations, create your own modules and do not change the standard modules.

2. When you need company-specific customizations, then relate them to the company_id.

3. If it is not possible to relate to company_ids, you will have to create separate databases for each company.

Avatar
Discard
Author

Hii Ermin. Thank you for the reply.

I always create new modules to make customization in standard odoo.

Could you please share some example code how to relate customizations to the company_id in python code, xml, templates and xml.

We need it all companies in one database.

Thanks,

Author

Hii Ermin, waiting some code example....recommendations

Hi Muhammad,

The people on this Help Forum are part of the Odoo community, and most are not Odoo employees. Repeatedly saying what you 'need' or are 'waiting for' is unlikely to get you a positive response!

I do not have any example code, because I would never do that. It is much too complicated, and according to my experience, this is not worth the effort. I'd rather rethink my business requirements or setup.

Related Posts Replies Views Activity
1
Oct 24
2729
5
Aug 24
307
0
Oct 22
1080
0
Jan 22
1129
1
Sep 21
2656