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
1.7 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. <record id="action_open_group_members" model="ir.actions.act_window">
  34. <field name="name">Company group members</field>
  35. <field name="res_model">res.partner</field>
  36. <field name="binding_model_id" ref="model_res_partner" />
  37. <field name="view_mode">tree</field>
  38. <field name="target">current</field>
  39. <field
  40. name="domain"
  41. >[('company_group_id', 'in', context.get('active_ids'))]</field>
  42. </record>
  43. </odoo>