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.

42 lines
1.9 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. groups="base_global_discount.group_global_discount"
  14. attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
  15. />
  16. <field
  17. name="customer_global_discount_ids_readonly"
  18. string="Sale Global Discounts"
  19. widget="many2many_tags"
  20. groups="!base_global_discount.group_global_discount"
  21. attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
  22. />
  23. </group>
  24. <group name="purchase" position="inside">
  25. <field
  26. name="supplier_global_discount_ids"
  27. widget="many2many_tags"
  28. groups="base_global_discount.group_global_discount"
  29. attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
  30. />
  31. <field
  32. name="supplier_global_discount_ids_readonly"
  33. string="Purchase Global Discounts"
  34. readonly="1"
  35. widget="many2many_tags"
  36. groups="!base_global_discount.group_global_discount"
  37. attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
  38. />
  39. </group>
  40. </field>
  41. </record>
  42. </odoo>