Browse Source

XML Code cleanup

pull/285/head
Alexis de Lattre 9 years ago
parent
commit
d66d0555ac
  1. 5
      base_continent/views/continent.xml
  2. 9
      base_continent/views/country.xml
  3. 4
      base_continent/views/partner.xml

5
base_continent/views/continent.xml

@ -34,7 +34,10 @@
<field name="help">Display and manage the list of all continents that can be assigned to your partner records.</field>
</record>
<menuitem action="action_continent" id="menu_continent_partner" parent="base.menu_localisation" sequence="1" groups="base.group_no_one"/>
<menuitem id="menu_continent_partner"
action="action_continent"
parent="base.menu_localisation"
sequence="1" groups="base.group_no_one"/>
</data>

9
base_continent/views/country.xml

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- add continent to res country tree -->
<record model="ir.ui.view" id="view_country_tree_add_continent">
<record id="view_country_tree_add_continent" model="ir.ui.view">
<field name="name">res.country.tree.add_continent</field>
<field name="model">res.country</field>
<field name="inherit_id" ref="base.view_country_tree" />
<field name="inherit_id" ref="base.view_country_tree"/>
<field name="arch" type="xml">
<field name="code" position="after">
<field name="continent_id"/>
@ -13,8 +13,7 @@
</field>
</record>
<!-- add continent to res country form -->
<record model="ir.ui.view" id="view_country_form_add_continent">
<record id="view_country_form_add_continent" model="ir.ui.view">
<field name="name">res.country.form.add_continent</field>
<field name="model">res.country</field>
<field name="inherit_id" ref="base.view_country_form"/>

4
base_continent/views/partner.xml

@ -2,7 +2,7 @@
<openerp>
<data>
<record model="ir.ui.view" id="res_partner_form_add_continent">
<record id="res_partner_form_add_continent" model="ir.ui.view">
<field name="name">res.partner.form.add_continent</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
@ -14,7 +14,7 @@
</record>
<record id="view_res_partner_filter" model="ir.ui.view">
<field name="name">res.partner.form.add_continent</field>
<field name="name">res.partner.filter.add_continent</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="arch" type="xml">

Loading…
Cancel
Save