Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
3798 Widoki

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

 

Awatar
Odrzuć

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

Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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.....

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Autor

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,

Autor

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.

Powiązane posty Odpowiedzi Widoki Czynność
1
paź 24
12468
5
sie 24
2679
0
paź 22
2196
0
sty 22
2444
1
mar 25
4417