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.

33 lines
1.2 KiB

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <odoo>
  3. <record id="view_partner_form" model="ir.ui.view">
  4. <field name="name">res.partner.form</field>
  5. <field name="model">res.partner</field>
  6. <field name="inherit_id" ref="base.view_partner_form" />
  7. <field name="arch" type="xml">
  8. <field name="vat" position="before">
  9. <field
  10. name="company_group_id"
  11. attrs="{'invisible': [('is_company','=', False)]}"
  12. />
  13. </field>
  14. </field>
  15. </record>
  16. <record id="view_res_partner_filter" model="ir.ui.view">
  17. <field name="name">res.partner.select</field>
  18. <field name="model">res.partner</field>
  19. <field name="inherit_id" ref="base.view_res_partner_filter" />
  20. <field name="arch" type="xml">
  21. <field name="name" position="after">
  22. <field name="company_group_id" />
  23. </field>
  24. <filter name="group_company" position="before">
  25. <filter
  26. name="group_company_group"
  27. string="Company Group"
  28. context="{'group_by': 'company_group_id'}"
  29. />
  30. </filter>
  31. </field>
  32. </record>
  33. </odoo>