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
59 lines
1.9 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="view_partner_form" model="ir.ui.view">
|
|
<field name="name">res.partner.zip_id.2</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="city" position="before">
|
|
<field name="zip_id" on_change="onchange_zip_id(zip_id)" placeholder="ZIP completion"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<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="city"/>
|
|
<field name="priority"/>
|
|
<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="city"/>
|
|
<field name="country_id"/>
|
|
<field name="priority"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_zip_tree" model="ir.actions.act_window">
|
|
<field name="name">ZIP 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"/>
|
|
</record>
|
|
|
|
<menuitem
|
|
name="ZIP Management"
|
|
id="zip_base"
|
|
parent="base.menu_base_config"
|
|
action="action_zip_tree"
|
|
/>
|
|
</data>
|
|
</openerp>
|