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.

76 lines
2.8 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 id="res_partner_nuts_tree" model="ir.ui.view">
  4. <field name="name">NUTS Items tree</field>
  5. <field name="model">res.partner.nuts</field>
  6. <field name="arch" type="xml">
  7. <tree string="NUTS Items">
  8. <field name="level" />
  9. <field name="code" />
  10. <field name="name" />
  11. </tree>
  12. </field>
  13. </record>
  14. <record id="res_partner_nuts_form" model="ir.ui.view">
  15. <field name="name">NUTS Items form</field>
  16. <field name="model">res.partner.nuts</field>
  17. <field name="arch" type="xml">
  18. <form string="NUTS Item">
  19. <group>
  20. <group>
  21. <field name="level" />
  22. <field name="code" />
  23. <field name="parent_id" />
  24. <field name="name" />
  25. <field name="not_updatable" />
  26. </group>
  27. <group>
  28. <field name="country_id" />
  29. <field name="state_id" />
  30. </group>
  31. </group>
  32. </form>
  33. </field>
  34. </record>
  35. <record id="res_partner_nuts_action" model="ir.actions.act_window">
  36. <field name="name">NUTS Items</field>
  37. <field name="res_model">res.partner.nuts</field>
  38. <field name="view_mode">tree,form</field>
  39. <field name="help">You must click at import wizard to populate NUTS items
  40. in Odoo database in:
  41. Sales > Configuration > Address Book > Localization > Import NUTS 2013</field>
  42. </record>
  43. <record model="ir.ui.view" id="view_res_partner_nuts_filter">
  44. <field name="name">NUTS search filters</field>
  45. <field name="model">res.partner.nuts</field>
  46. <field name="arch" type="xml">
  47. <search string="Search NUTS">
  48. <field name="name" />
  49. <field name="country_id" />
  50. <field name="state_id" />
  51. <group expand="0" string="Group By">
  52. <filter
  53. name="country"
  54. string="Country"
  55. domain="[]"
  56. context="{'group_by': 'country_id'}"
  57. />
  58. <filter
  59. name="level"
  60. string="Level"
  61. domain="[]"
  62. context="{'group_by': 'level'}"
  63. />
  64. </group>
  65. </search>
  66. </field>
  67. </record>
  68. <menuitem
  69. action="res_partner_nuts_action"
  70. id="res_partner_nuts_menu"
  71. groups="base.group_partner_manager"
  72. name="NUTS Items"
  73. parent="contacts.menu_localisation"
  74. sequence="40"
  75. />
  76. </odoo>