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.

51 lines
1.5 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="action_zip_tree" model="ir.actions.act_window">
  34. <field name="name">Cites/locations Management</field>
  35. <field name="res_model">res.better.zip</field>
  36. <field name="view_type">form</field>
  37. <field name="view_mode">tree,form</field>
  38. <field ref="better_zip_tree" name="view_id"/>
  39. </record>
  40. <menuitem
  41. name="Cities/Locations Management"
  42. id="zip_base"
  43. parent="base.menu_localisation"
  44. action="action_zip_tree"
  45. />
  46. </data>
  47. </openerp>