forked from OCA/partner-contact
-
Notifications
You must be signed in to change notification settings - Fork 1
/
base_continent_view.xml
73 lines (66 loc) · 2.99 KB
/
base_continent_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?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">
<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="arch" type="xml">
<field name="code" position="after">
<field name="continent_id"/>
</field>
</field>
</record>
<!-- add continent to res country form -->
<record model="ir.ui.view" id="view_country_form_add_continent">
<field name="name">res.country.form.add_continent</field>
<field name="model">res.country</field>
<field name="inherit_id" ref="base.view_country_form"/>
<field name="arch" type="xml">
<field name="code" position="after">
<field name="continent_id"/>
</field>
</field>
</record>
<record id="view_continent_tree" model="ir.ui.view">
<field name="name">res.continent.tree</field>
<field name="model">res.continent</field>
<field name="arch" type="xml">
<tree string="Continent">
<field name="name"/>
</tree>
</field>
</record>
<record id="view_continent_form" model="ir.ui.view">
<field name="name">res.continent.form</field>
<field name="model">res.continent</field>
<field name="arch" type="xml">
<form string="Continent" version="7.0">
<group>
<field name="name"/>
</group>
</form>
</field>
</record>
<record id="action_continent" model="ir.actions.act_window">
<field name="name">Continents</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.continent</field>
<field name="view_type">form</field>
<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"/>
<!-- add continent to res partner form -->
<record model="ir.ui.view" id="res_partner_form_add_continent">
<field name="name">res.partner.form.add_continent</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<field name="country_id" position="after">
<field name="continent_id" widget="selection"/>
</field>
</field>
</record>
</data>
</openerp>