flectra/addons/base_address_city/views/res_city_view.xml
2018-01-16 02:34:37 -08:00

42 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<data>
<record id="view_city_tree" model="ir.ui.view">
<field name="model">res.city</field>
<field name="arch" type="xml">
<tree string="City" editable="top">
<field name="name"/>
<field name="zipcode"/>
<field name="country_id"/>
<field name="state_id"/>
</tree>
</field>
</record>
<record id="view_city_filter" model="ir.ui.view">
<field name="model">res.city</field>
<field name="arch" type="xml">
<search string="Search City">
<field name="name" filter_domain="['|', ('name','ilike',self), ('zipcode','ilike',self)]"
string="City"/>
<separator/>
<field name="country_id"/>
</search>
</field>
</record>
<record id="action_res_city_tree" model="ir.actions.act_window">
<field name="name">Cities</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.city</field>
<field name="view_type">form</field>
<field name="view_mode">tree</field>
<field name="help">
Display and manage the list of all cities that can be assigned to
your partner records. Note that an option can be set on each country separately
to enforce any address of it to have a city in this list.
</field>
</record>
</data>
</flectra>