12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <record model="ir.ui.view" id="better_zip_form">
- <field name="name">res.better.zip.form</field>
- <field name="model">res.better.zip</field>
- <field name="arch" type="xml">
- <form string="ZIP" version="7.0">
- <group col="4">
- <field name="name"/>
- <field name="code"/>
- <field name="city"/>
- <field name="state_id"/>
- <field name="country_id"/>
- </group>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="better_zip_tree">
- <field name="name">res.better.zip.tree</field>
- <field name="model">res.better.zip</field>
- <field name="arch" type="xml">
- <tree string="ZIP">
- <field name="name"/>
- <field name="code"/>
- <field name="city"/>
- <field name="state_id"/>
- <field name="country_id"/>
- </tree>
- </field>
- </record>
- <record id="view_better_zip_filter" model="ir.ui.view">
- <field name="name">res.better.zip.select</field>
- <field name="model">res.better.zip</field>
- <field name="arch" type="xml">
- <search string="Search city">
- <field name="name"/>
- <field name="code"/>
- <field name="city"/>
- <field name="state_id"/>
- <field name="country_id"/>
- <group expand="0" string="Group By">
- <filter string="State" domain="[]" context="{'group_by':'state_id'}"/>
- <filter string="Country" domain="[]" context="{'group_by':'country_id'}"/>
- </group>
- </search>
- </field>
- </record>
- <record id="action_zip_tree" model="ir.actions.act_window">
- <field name="name">Cites/locations Management</field>
- <field name="res_model">res.better.zip</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field ref="better_zip_tree" name="view_id"/>
- <field name="search_view_id" ref="view_better_zip_filter"/>
- </record>
- <menuitem
- name="Cities/Locations Management"
- id="zip_base"
- parent="base.menu_localisation"
- action="action_zip_tree"
- />
- </data>
- </openerp>
|