Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
3870 Lượt xem

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

 

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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,

Tác giả

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.

Bài viết liên quan Trả lời Lượt xem Hoạt động
creation of company Đã xử lý
1
thg 10 24
12610
5
thg 8 24
2931
0
thg 10 22
2350
0
thg 1 22
2559
1
thg 3 25
4542