Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
4160 Представления

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
8864
1
окт. 23
1878
0
июл. 23
1553
2
дек. 20
3698
2
апр. 19
3118