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.

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