trytond-country_zip/country.xml
2012-07-18 11:01:45 +02:00

55 lines
2.2 KiB
XML
Executable file

<?xml version="1.0"?>
<!-- This file is part country_zip module for Tryton.
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="country_zip_view_form">
<field name="model">country.zip</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Country Zip">
<label name="zip"/>
<field name="zip"/>
<label name="city"/>
<field name="city"/>
<label name="subdivision"/>
<field name="subdivision"/>
</form>
]]>
</field>
</record>
<record model="ir.ui.view" id="country_zip_view_tree">
<field name="model">country.zip</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Countries">
<field name="zip"/>
<field name="city"/>
<field name="subdivision"/>
</tree>
]]>
</field>
</record>
<record model="ir.action.act_window" id="act_country_zip_form">
<field name="name">Country Zips</field>
<field name="res_model">country.zip</field>
</record>
<record model="ir.action.act_window.view" id="act_country_zip_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="country_zip_view_tree"/>
<field name="act_window" ref="act_country_zip_form"/>
</record>
<record model="ir.action.act_window.view" id="act_country_zip_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="country_zip_view_form"/>
<field name="act_window" ref="act_country_zip_form"/>
</record>
<menuitem parent="country.menu_country_form" action="act_country_zip_form"
id="menu_country_zip_form"/>
</data>
</tryton>