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.

64 lines
2.4 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  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
  15. expr="//field[@name='child_ids']/form//field[@name='country_id']/.."
  16. position="after"
  17. >
  18. <field name="nuts1_id" />
  19. <field name="nuts2_id" />
  20. <field name="nuts3_id" />
  21. <field name="nuts4_id" />
  22. </xpath>
  23. </field>
  24. </record>
  25. <record model="ir.ui.view" id="view_res_partner_filter_nuts">
  26. <field name="name">Partner search with NUTS</field>
  27. <field name="model">res.partner</field>
  28. <field name="inherit_id" ref="base.view_res_partner_filter" />
  29. <field name="arch" type="xml">
  30. <field name="category_id" position="after">
  31. <field name="nuts1_id" />
  32. <field name="nuts2_id" />
  33. <field name="nuts3_id" />
  34. <field name="nuts4_id" />
  35. </field>
  36. <filter name="salesperson" position="after">
  37. <filter
  38. name="nuts_l1"
  39. string="NUTS L1"
  40. domain="[]"
  41. context="{'group_by': 'nuts1_id'}"
  42. />
  43. <filter
  44. name="nuts_l2"
  45. string="NUTS L2"
  46. domain="[]"
  47. context="{'group_by': 'nuts2_id'}"
  48. />
  49. <filter
  50. name="nuts_l3"
  51. string="NUTS L3"
  52. domain="[]"
  53. context="{'group_by': 'nuts3_id'}"
  54. />
  55. <filter
  56. name="nuts_l4"
  57. string="NUTS L4"
  58. domain="[]"
  59. context="{'group_by': 'nuts4_id'}"
  60. />
  61. </filter>
  62. </field>
  63. </record>
  64. </odoo>