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.

39 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2012 -Now Savoir-faire Linux <https://www.savoirfairelinux.com/>
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <data noupdate="1">
  6. <!-- Rule -->
  7. <record model="ir.rule" id="kpi_rule">
  8. <field name="name">kpi multi-company</field>
  9. <field name="model_id" ref="model_kpi"/>
  10. <field name="global" eval="True"/>
  11. <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
  12. </record>
  13. <record model="ir.rule" id="kpi_threshold_range_rule">
  14. <field name="name">kpi_threshold_range multi-company</field>
  15. <field name="model_id" ref="model_kpi_threshold_range"/>
  16. <field name="global" eval="True"/>
  17. <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
  18. </record>
  19. <record model="ir.rule" id="kpi_threshold_rule">
  20. <field name="name">kpi_threshold multi-company</field>
  21. <field name="model_id" ref="model_kpi_threshold"/>
  22. <field name="global" eval="True"/>
  23. <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
  24. </record>
  25. <record model="ir.rule" id="kpi_history_rule">
  26. <field name="name">kpi_history multi-company</field>
  27. <field name="model_id" ref="model_kpi_history"/>
  28. <field name="global" eval="True"/>
  29. <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
  30. </record>
  31. </data>
  32. </odoo>