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.

36 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data noupdate="1">
  4. <!-- Rule -->
  5. <record model="ir.rule" id="mgmtsystem_kpi_rule">
  6. <field name="name">mgmtsystem_kpi multi-company</field>
  7. <field name="model_id" ref="model_mgmtsystem_kpi"/>
  8. <field name="global" eval="True"/>
  9. <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
  10. </record>
  11. <record model="ir.rule" id="mgmtsystem_kpi_threshold_range_rule">
  12. <field name="name">mgmtsystem_kpi_threshold_range multi-company</field>
  13. <field name="model_id" ref="model_mgmtsystem_kpi_threshold_range"/>
  14. <field name="global" eval="True"/>
  15. <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
  16. </record>
  17. <record model="ir.rule" id="mgmtsystem_kpi_threshold_rule">
  18. <field name="name">mgmtsystem_kpi_threshold multi-company</field>
  19. <field name="model_id" ref="model_mgmtsystem_kpi_threshold"/>
  20. <field name="global" eval="True"/>
  21. <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
  22. </record>
  23. <record model="ir.rule" id="mgmtsystem_kpi_history_rule">
  24. <field name="name">mgmtsystem_kpi_history multi-company</field>
  25. <field name="model_id" ref="model_mgmtsystem_kpi_history"/>
  26. <field name="global" eval="True"/>
  27. <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
  28. </record>
  29. </data>
  30. </openerp>