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.

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