-
Notifications
You must be signed in to change notification settings - Fork 4
/
somenergia_soci_view.xml
42 lines (42 loc) · 1.84 KB
/
somenergia_soci_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
<?xml version="1.0"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_somenergia_soci_form">
<field name="name">somenergia.soci.form</field>
<field name="model">somenergia.soci</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="extend">1</field>
<field name="arch" type="xml">
<page string="General" position="after">
<page string="Soci">
<field name="baixa"/>
<group colspan="2" col="2" attrs="{'invisible': [('baixa','=',0)]}">
<field name="data_baixa_soci"/>
</group>
</page>
</page>
</field>
</record>
<record model="ir.ui.view" id="view_somenergia_soci_tree">
<field name="name">somenergia.soci.tree</field>
<field name="model">somenergia.soci</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Socis">
<field name="partner_id" select="1"/>
<field name="baixa"/>
<field name="data_baixa_soci"/>
</tree>
</field>
</record>
<record id="action_somenergia_soci_tree" model="ir.actions.act_window">
<field name="name">Socis</field>
<field name="res_model">somenergia.soci</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_somenergia_soci_tree"/>
</record>
<menuitem action="action_somenergia_soci_tree" id="menu_somenergia_soci_tree" parent="base.menu_base_partner"/>
</data>
</openerp>