-
Notifications
You must be signed in to change notification settings - Fork 3
/
partner_view.xml
37 lines (34 loc) · 1.72 KB
/
partner_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
<?xml version="1.0"?>
<openerp>
<data>
<record id="view_partner_form_add_agent" model="ir.ui.view">
<field name="name">res.partner.form.add_agent</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority" eval="22"/>
<field name="arch" type="xml">
<xpath expr="/form/sheet/notebook/page/group/group/field[@name='section_id']" position="after">
<field name="agent" string="Consultancy"></field>
</xpath>
</field>
</record>
<record id="view_partner_form_add_agents" model="ir.ui.view">
<field name="name">res.partner.form.add_agents</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="view_partner_form_add_agent"/>
<field name="arch" type="xml">
<field name="agent" position="after">
<group colspan="4">
<separator string="Agents/Consultancy" attrs="{'invisible':[('agent','==',True)]}"/>
<field name="commission_ids" colspan="4" nolabel="1" attrs="{'invisible':[('agent','==',True)]}">
<tree string="Agents and Commissions" editable="top">
<field name="agent_id" on_change="onchange_agent_id(agent_id)"/>
<field name="commission_id" on_change="onchange_commission_id(agent_id,commission_id)"/>
</tree>
</field>
</group>
</field>
</field>
</record>
</data>
</openerp>