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

Hello community!
I have my odoo configured with multicompany and shared all products,
The point is that I need to create a company but I don't want it to share the products.
How can I achieve it?
I also need to make a personalized shopping module for this company.
Thank you

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

Does this mean that you want 2 companies to share the product catalog but the 3rd company should have it's own product catalog ?

Tác giả

Yes, it is exactly what I need ..

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

Hi,

Following rule will help you to achieve this

<record id="product_template_rule" model="ir.rule">
<field name="name">Product Template</field>
<field name="model_id" ref="model_product_template"/>
<field name="domain_force">[('company_id', 'child_of', user.company_ids.ids)]</field>
</record>

Assign Company ID in Users and Products. Based on that you can do it.

Thanks.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 19
8872
1
thg 10 23
1883
0
thg 7 23
1566
2
thg 12 20
3698
2
thg 4 19
3153