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.

74 lines
2.4 KiB

  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 tree</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. </group>
  26. <group>
  27. <field name="country_id"/>
  28. <field name="state_id"/>
  29. </group>
  30. </group>
  31. </form>
  32. </field>
  33. </record>
  34. <record id="res_partner_nuts_action" model="ir.actions.act_window">
  35. <field name="name">NUTS Items</field>
  36. <field name="type">ir.actions.act_window</field>
  37. <field name="res_model">res.partner.nuts</field>
  38. <field name="view_type">form</field>
  39. <field name="view_mode">tree,form</field>
  40. <field name="help">You must click at import wizard to populate NUTS items
  41. in Odoo database in:
  42. Sales > Configuration > Address Book > Localization > Import NUTS 2013</field>
  43. </record>
  44. <record model="ir.ui.view" id="view_res_partner_nuts_filter">
  45. <field name="name">NUTS search filters</field>
  46. <field name="model">res.partner.nuts</field>
  47. <field name="arch" type="xml">
  48. <search string="Search NUTS">
  49. <field name="name"/>
  50. <field name="country_id"/>
  51. <field name="state_id"/>
  52. <group expand="0" string="Group By">
  53. <filter string="Country"
  54. domain="[]"
  55. context="{'group_by': 'country_id'}"/>
  56. <filter string="Level"
  57. domain="[]"
  58. context="{'group_by': 'level'}"/>
  59. </group>
  60. </search>
  61. </field>
  62. </record>
  63. <menuitem action="res_partner_nuts_action"
  64. id="res_partner_nuts_menu"
  65. name="NUTS Items"
  66. parent="sales_team.menu_localisation"
  67. sequence="40"/>
  68. </odoo>