~yannick-buron/partner-contact-management/partner-contact-management

« back to all changes in this revision

Viewing changes to base_continent/base_continent_view.xml

  • Committer: Yannick Vaucher
  • Author(s): romain.deheele at camptocamp
  • Date: 2014-01-22 08:45:22 UTC
  • mfrom: (28.1.6 partner-contact-management)
  • Revision ID: yannick.vaucher@camptocamp.com-20140122084522-0uq959b52xwbp6nm
[MRG] [ADD] add continent management addon

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
  <data>
 
4
        <!-- add continent to res country tree -->
 
5
        <record model="ir.ui.view" id="view_country_tree_add_continent">
 
6
            <field name="name">res.country.tree.add_continent</field>
 
7
            <field name="model">res.country</field>
 
8
            <field name="inherit_id" ref="base.view_country_tree" />
 
9
            <field name="arch" type="xml">
 
10
                <field name="code" position="after">
 
11
                    <field name="continent_id"/>
 
12
                </field>
 
13
            </field>
 
14
        </record>
 
15
 
 
16
        <!-- add continent to res country form -->
 
17
        <record model="ir.ui.view" id="view_country_form_add_continent">
 
18
            <field name="name">res.country.form.add_continent</field>
 
19
            <field name="model">res.country</field>
 
20
            <field name="inherit_id" ref="base.view_country_form"/>
 
21
            <field name="arch" type="xml">
 
22
                <field name="code" position="after">
 
23
                    <field name="continent_id"/>
 
24
                </field>
 
25
            </field>
 
26
        </record>
 
27
 
 
28
        <record id="view_continent_tree" model="ir.ui.view">
 
29
            <field name="name">res.continent.tree</field>
 
30
            <field name="model">res.continent</field>
 
31
            <field name="arch" type="xml">
 
32
                <tree string="Continent">
 
33
                    <field name="name"/>
 
34
                </tree>
 
35
            </field>
 
36
        </record>
 
37
 
 
38
        <record id="view_continent_form" model="ir.ui.view">
 
39
            <field name="name">res.continent.form</field>
 
40
            <field name="model">res.continent</field>
 
41
            <field name="arch" type="xml">
 
42
                <form string="Continent" version="7.0">
 
43
                    <group>
 
44
                        <field name="name"/>
 
45
                    </group>
 
46
                </form>
 
47
            </field>
 
48
        </record>
 
49
 
 
50
        <record id="action_continent" model="ir.actions.act_window">
 
51
            <field name="name">Continents</field>
 
52
            <field name="type">ir.actions.act_window</field>
 
53
            <field name="res_model">res.continent</field>
 
54
            <field name="view_type">form</field>
 
55
            <field name="help">Display and manage the list of all continents that can be assigned to your partner records.</field>
 
56
        </record>
 
57
 
 
58
        <menuitem action="action_continent" id="menu_continent_partner" parent="base.menu_localisation" sequence="1" groups="base.group_no_one"/>
 
59
 
 
60
        <!-- add continent to res partner form -->
 
61
        <record model="ir.ui.view" id="res_partner_form_add_continent">
 
62
            <field name="name">res.partner.form.add_continent</field>
 
63
            <field name="model">res.partner</field>
 
64
            <field name="inherit_id" ref="base.view_partner_form"/>
 
65
            <field name="arch" type="xml">
 
66
                <field name="country_id" position="after">
 
67
                    <field name="continent_id" widget="selection"/>
 
68
                </field>
 
69
            </field>
 
70
        </record>
 
71
 
 
72
  </data>
 
73
</openerp>