You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
1.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<!--This XML file contains the configuration for multi-company rules in Odoo.
It defines ir.rule records for the Service Booking and Service Worksheet
models,enforcing the domain based on company_id. -->
<odoo>
<data noupdate="1">
<record id="service_booking_comp_rule" model="ir.rule">
<field name="name">Service Booking multi company rule</field>
<field name="model_id" ref="model_service_booking"/>
<field name="domain_force">
['|',('company_id','=',False),('company_id', 'in', company_ids)]
</field>
</record>
<record id="service_worksheet_comp_rule" model="ir.rule">
<field name="name">Service Worksheet multi company rule</field>
<field name="model_id" ref="model_service_worksheet"/>
<field name="domain_force">
['|',('company_id','=',False),('company_id', 'in', company_ids)]
</field>
</record>
</data>
</odoo>