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.

63 lines
2.0 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="better_zip_form">
  5. <field name="name">res.better.zip.form</field>
  6. <field name="model">res.better.zip</field>
  7. <field name="arch" type="xml">
  8. <form string="ZIP" version="7.0">
  9. <group col="4">
  10. <field name="name"/>
  11. <field name="code"/>
  12. <field name="city"/>
  13. <field name="priority"/>
  14. <field name="state_id" on_change="onchange_state_id(state_id)"/>
  15. <field name="country_id"/>
  16. </group>
  17. </form>
  18. </field>
  19. </record>
  20. <record model="ir.ui.view" id="better_zip_tree">
  21. <field name="name">res.better.zip.tree</field>
  22. <field name="model">res.better.zip</field>
  23. <field name="arch" type="xml">
  24. <tree string="ZIP">
  25. <field name="name"/>
  26. <field name="code"/>
  27. <field name="city"/>
  28. <field name="country_id"/>
  29. <field name="priority"/>
  30. </tree>
  31. </field>
  32. </record>
  33. <record id="view_better_zip_filter" model="ir.ui.view">
  34. <field name="name">res.better.zip.select</field>
  35. <field name="model">res.better.zip</field>
  36. <field name="arch" type="xml">
  37. <search string="Search city">
  38. <field name="name"/>
  39. <field name="city"/>
  40. </search>
  41. </field>
  42. </record>
  43. <record id="action_zip_tree" model="ir.actions.act_window">
  44. <field name="name">Cites/locations Management</field>
  45. <field name="res_model">res.better.zip</field>
  46. <field name="view_type">form</field>
  47. <field name="view_mode">tree,form</field>
  48. <field ref="better_zip_tree" name="view_id"/>
  49. <field name="search_view_id" ref="view_better_zip_filter"/>
  50. </record>
  51. <menuitem
  52. name="Cities/Locations Management"
  53. id="zip_base"
  54. parent="base.menu_localisation"
  55. action="action_zip_tree"
  56. />
  57. </data>
  58. </openerp>