<?xml version="1.0" ?>
<!-- Copyright 2019 Tecnativa - David Vidal
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
    <record model="ir.rule" id="global_discount_comp_rule">
        <field name="name">Global Discount multi-company</field>
        <field name="model_id" ref="base_global_discount.model_global_discount" />
        <field
            name="domain_force"
        >['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
        <field name="perm_read" eval="1" />
        <field name="perm_create" eval="1" />
        <field name="perm_write" eval="1" />
        <field name="perm_unlink" eval="1" />
    </record>
    <record id="group_global_discount" model="res.groups">
        <field name="name">Manage Global Discounts</field>
        <field name="category_id" ref="base.module_category_hidden" />
    </record>
</odoo>
