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.

59 lines
1.9 KiB

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