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.

57 lines
2.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- © 2015 Antiun Ingeniería S.L. - Jairo Llopis
  3. © 2015 Antiun Ingeniería S.L. - Antonio Espinosa
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
  5. <openerp>
  6. <data>
  7. <record model="ir.ui.view" id="view_partner_form_nuts">
  8. <field name="name">Partner form with NUTS</field>
  9. <field name="model">res.partner</field>
  10. <field name="inherit_id" ref="base.view_partner_form"/>
  11. <field name="arch" type="xml">
  12. <xpath expr="//sheet/group//field[@name='country_id']/.." position="after">
  13. <field name="nuts1_id"/>
  14. <field name="nuts2_id"/>
  15. <field name="nuts3_id"/>
  16. <field name="nuts4_id"/>
  17. </xpath>
  18. <xpath expr="//field[@name='child_ids']/form//field[@name='country_id']/.." position="after">
  19. <field name="nuts1_id"/>
  20. <field name="nuts2_id"/>
  21. <field name="nuts3_id"/>
  22. <field name="nuts4_id"/>
  23. </xpath>
  24. </field>
  25. </record>
  26. <record model="ir.ui.view" id="view_res_partner_filter_nuts">
  27. <field name="name">Partner search with NUTS</field>
  28. <field name="model">res.partner</field>
  29. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  30. <field name="arch" type="xml">
  31. <field name="category_id" position="after">
  32. <field name="nuts1_id"/>
  33. <field name="nuts2_id"/>
  34. <field name="nuts3_id"/>
  35. <field name="nuts4_id"/>
  36. </field>
  37. <filter string="Salesperson" position="after">
  38. <filter string="NUTS L1"
  39. domain="[]"
  40. context="{'group_by': 'nuts1_id'}"/>
  41. <filter string="NUTS L2"
  42. domain="[]"
  43. context="{'group_by': 'nuts2_id'}"/>
  44. <filter string="NUTS L3"
  45. domain="[]"
  46. context="{'group_by': 'nuts3_id'}"/>
  47. <filter string="NUTS L4"
  48. domain="[]"
  49. context="{'group_by': 'nuts4_id'}"/>
  50. </filter>
  51. </field>
  52. </record>
  53. </data>
  54. </openerp>