mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-11-14 10:12:05 +00:00
50 lines
1.7 KiB
XML
50 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<flectra>
|
|
<record model="ir.ui.view" id="city_zip_form">
|
|
<field name="name">res.city.zip.form</field>
|
|
<field name="model">res.city.zip</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Zip">
|
|
<group>
|
|
<field name="name" />
|
|
<field name="city_id" />
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record model="ir.ui.view" id="city_zip_tree">
|
|
<field name="name">res.city.zip.tree</field>
|
|
<field name="model">res.city.zip</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Zips" editable="top">
|
|
<field name="name" />
|
|
<field name="city_id" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="view_city_zip_filter" model="ir.ui.view">
|
|
<field name="name">res.city.zip.select</field>
|
|
<field name="model">res.city.zip</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search zip">
|
|
<field name="name" />
|
|
<field name="city_id" />
|
|
</search>
|
|
</field>
|
|
</record>
|
|
<record id="action_zip_tree" model="ir.actions.act_window">
|
|
<field name="name">Locations</field>
|
|
<field name="res_model">res.city.zip</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field ref="city_zip_tree" name="view_id" />
|
|
<field name="search_view_id" ref="view_city_zip_filter" />
|
|
</record>
|
|
<menuitem
|
|
name="Zips"
|
|
id="locations_menu_zips"
|
|
parent="contacts.menu_localisation"
|
|
action="action_zip_tree"
|
|
sequence="5"
|
|
/>
|
|
</flectra>
|