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.

27 lines
1.1 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 name="company_group_id" attrs="{'invisible': [('is_company','=', False)]}" />
  10. </field>
  11. </field>
  12. </record>
  13. <record id="view_res_partner_filter" model="ir.ui.view">
  14. <field name="name">res.partner.select</field>
  15. <field name="model">res.partner</field>
  16. <field name="inherit_id" ref="base.view_res_partner_filter" />
  17. <field name="arch" type="xml">
  18. <field name="name" position="before">
  19. <field name="company_group_id" />
  20. </field>
  21. <filter name="group_company" position="before">
  22. <filter name="group_company_group" string="Company Group" context="{'group_by': 'company_group_id'}"/>
  23. </filter>
  24. </field>
  25. </record>
  26. </odoo>