Purpose of the commit is to make the multi company consistence with product, sale order and order template. So the Common Product Catalog setting is removed from generel settings because its behavior wasn't really clean from a technical point of view (disabling the rule on products access) and wouldn't work as well with new multi-company logic. The default logic of sharing products will be kept, but when someone wants to limit products sharing, he will do so product by product, by setting the company_id. Also the default company_id on product will be blank so default product will be a sharable by multi company. and added company_id on sale templates so user can select his/her own company or the templates which are common. task-2025168 Closes: #34342
12 lines
437 B
XML
12 lines
437 B
XML
<?xml version='1.0' encoding='utf-8'?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record model="ir.rule" id="delivery_carrier_comp_rule">
|
|
<field name="name">Delivery Carrier multi-company</field>
|
|
<field name="model_id" ref="model_delivery_carrier"/>
|
|
<field name="global" eval="True"/>
|
|
<field name="domain_force"> ['|', ('company_id', 'in', company_ids), ('company_id', '=', False)]</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|