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.

52 lines
1.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record model="ir.ui.view" id="view_partner_form_nuts">
  4. <field name="name">Partner form with NUTS</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. <xpath expr="//sheet/group//field[@name='country_id']/.." position="after">
  9. <field name="nuts1_id"/>
  10. <field name="nuts2_id"/>
  11. <field name="nuts3_id"/>
  12. <field name="nuts4_id"/>
  13. </xpath>
  14. <xpath expr="//field[@name='child_ids']/form//field[@name='country_id']/.." position="after">
  15. <field name="nuts1_id"/>
  16. <field name="nuts2_id"/>
  17. <field name="nuts3_id"/>
  18. <field name="nuts4_id"/>
  19. </xpath>
  20. </field>
  21. </record>
  22. <record model="ir.ui.view" id="view_res_partner_filter_nuts">
  23. <field name="name">Partner search with NUTS</field>
  24. <field name="model">res.partner</field>
  25. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  26. <field name="arch" type="xml">
  27. <field name="category_id" position="after">
  28. <field name="nuts1_id"/>
  29. <field name="nuts2_id"/>
  30. <field name="nuts3_id"/>
  31. <field name="nuts4_id"/>
  32. </field>
  33. <filter name="salesperson" position="after">
  34. <filter string="NUTS L1"
  35. domain="[]"
  36. context="{'group_by': 'nuts1_id'}"/>
  37. <filter string="NUTS L2"
  38. domain="[]"
  39. context="{'group_by': 'nuts2_id'}"/>
  40. <filter string="NUTS L3"
  41. domain="[]"
  42. context="{'group_by': 'nuts3_id'}"/>
  43. <filter string="NUTS L4"
  44. domain="[]"
  45. context="{'group_by': 'nuts4_id'}"/>
  46. </filter>
  47. </field>
  48. </record>
  49. </odoo>