Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
4218 มุมมอง

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

อวตาร
ละทิ้ง

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

ผู้เขียน

Yes, it is exactly what I need ..

คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 19
8948
1
ต.ค. 23
1946
0
ก.ค. 23
1640
2
ธ.ค. 20
3698
2
เม.ย. 19
3199