mirror of
https://gitlab.com/flectra-community/reporting-engine.git
synced 2024-12-23 04:41:47 +00:00
48 lines
2.1 KiB
XML
48 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!-- Copyright 2012 -Now Savoir-faire Linux <https://www.savoirfairelinux.com/>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
|
<flectra>
|
|
<data noupdate="0">
|
|
<record id="group_kpi_manager" model="res.groups">
|
|
<field name="name">Manage KPI's</field>
|
|
<field name="category_id" ref="base.module_category_hidden" />
|
|
<field name="users" eval="[(4, ref('base.user_admin'))]" />
|
|
</record>
|
|
</data>
|
|
<data noupdate="1">
|
|
<!-- Rule -->
|
|
<record model="ir.rule" id="kpi_rule">
|
|
<field name="name">kpi multi-company</field>
|
|
<field name="model_id" ref="model_kpi" />
|
|
<field name="global" eval="True" />
|
|
<field
|
|
name="domain_force"
|
|
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
|
|
</record>
|
|
<record model="ir.rule" id="kpi_threshold_range_rule">
|
|
<field name="name">kpi_threshold_range multi-company</field>
|
|
<field name="model_id" ref="model_kpi_threshold_range" />
|
|
<field name="global" eval="True" />
|
|
<field
|
|
name="domain_force"
|
|
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
|
|
</record>
|
|
<record model="ir.rule" id="kpi_threshold_rule">
|
|
<field name="name">kpi_threshold multi-company</field>
|
|
<field name="model_id" ref="model_kpi_threshold" />
|
|
<field name="global" eval="True" />
|
|
<field
|
|
name="domain_force"
|
|
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
|
|
</record>
|
|
<record model="ir.rule" id="kpi_history_rule">
|
|
<field name="name">kpi_history multi-company</field>
|
|
<field name="model_id" ref="model_kpi_history" />
|
|
<field name="global" eval="True" />
|
|
<field
|
|
name="domain_force"
|
|
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
|
|
</record>
|
|
</data>
|
|
</flectra>
|