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.

20 lines
889 B

  1. <?xml version="1.0" ?>
  2. <!-- Copyright 2019 Tecnativa - David Vidal
  3. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record model="ir.rule" id="global_discount_comp_rule">
  6. <field name="name">Global Discount multi-company</field>
  7. <field name="model_id" ref="base_global_discount.model_global_discount" />
  8. <field
  9. name="domain_force"
  10. >['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
  11. <field name="perm_read" eval="1" />
  12. <field name="perm_create" eval="1" />
  13. <field name="perm_write" eval="1" />
  14. <field name="perm_unlink" eval="1" />
  15. </record>
  16. <record id="group_global_discount" model="res.groups">
  17. <field name="name">Manage Global Discounts</field>
  18. <field name="category_id" ref="base.module_category_hidden" />
  19. </record>
  20. </odoo>