<?xml version="1.0" encoding="utf-8"?> <openerp> <data noupdate="1"> <!-- Rule --> <record model="ir.rule" id="mgmtsystem_kpi_rule"> <field name="name">mgmtsystem_kpi multi-company</field> <field name="model_id" ref="model_mgmtsystem_kpi"/> <field name="global" eval="True"/> <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> </record> <record model="ir.rule" id="mgmtsystem_kpi_threshold_range_rule"> <field name="name">mgmtsystem_kpi_threshold_range multi-company</field> <field name="model_id" ref="model_mgmtsystem_kpi_threshold_range"/> <field name="global" eval="True"/> <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> </record> <record model="ir.rule" id="mgmtsystem_kpi_threshold_rule"> <field name="name">mgmtsystem_kpi_threshold multi-company</field> <field name="model_id" ref="model_mgmtsystem_kpi_threshold"/> <field name="global" eval="True"/> <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> </record> <record model="ir.rule" id="mgmtsystem_kpi_history_rule"> <field name="name">mgmtsystem_kpi_history multi-company</field> <field name="model_id" ref="model_mgmtsystem_kpi_history"/> <field name="global" eval="True"/> <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> </record> </data> </openerp>