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.

25 lines
1.0 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  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.ui.view" id="res_partner_form_view">
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form" />
  8. <field name="arch" type="xml">
  9. <group name="sale" position="inside">
  10. <field
  11. name="customer_global_discount_ids"
  12. widget="many2many_tags"
  13. attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
  14. />
  15. </group>
  16. <group name="purchase" position="inside">
  17. <field
  18. name="supplier_global_discount_ids"
  19. widget="many2many_tags"
  20. attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
  21. />
  22. </group>
  23. </field>
  24. </record>
  25. </odoo>