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

Hi, i have a multi companies setup:

- Company A with users A1, A2, A3,  etc

- Company B with users B1, B2, B3 etc

and of course the initial user ( admin i guess )

What i want to do is users As can see only  see companies and users created by users As, same isolation in B.

Basically, they have there own odoo instance, no links between them

I don' t know what to do, i uncheck the share private address, but not enough, something else to do ?

Your helps would be appreciate

Thanks


 



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

They will never be totally separate, but there are standard options in the "Multi-company" section under "General Settings": 

If you uncheck "Common Contact Book" and "Common Product Catalog" then each company will have its own products and contacts (customers, suppliers).  These use Record Rules. 

There are other Record Rules that will limit what users can see and do, but be careful because they don't apply everywhere (e.g. Leads in CRM in version 11, and events in the Calendar). It's easy enough to create new Record Rules once you know what is missing.

Private Addresses are something else (more information here).

Note: this answer refers to Odoo 12 and earlier.  This logic has changed in Odoo 13

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi. You can perform it by using Record Rules.

Find more information here: 

\https://www.odoo.com/documentation/12.0/reference/security.html#record-rules


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 4 23
34482
0
thg 4 22
3304
0
thg 12 21
2255
3
thg 7 19
4693
1
thg 3 24
1659