|
|
@ -3,27 +3,37 @@ |
|
|
|
<record id="view_partner_form" model="ir.ui.view"> |
|
|
|
<field name="name">add street3 in form view</field> |
|
|
|
<field name="model">res.partner</field> |
|
|
|
<field name="inherit_id" ref="base.view_partner_form"/> |
|
|
|
<field name="inherit_id" ref="base.view_partner_form" /> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<xpath |
|
|
|
expr="/form/sheet/group/group/div/field[@name='street2']" |
|
|
|
position="after"> |
|
|
|
<field name="street3" |
|
|
|
position="after" |
|
|
|
> |
|
|
|
<field |
|
|
|
name="street3" |
|
|
|
placeholder="Street 3..." |
|
|
|
class="o_address_street" |
|
|
|
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> |
|
|
|
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" |
|
|
|
/> |
|
|
|
</xpath> |
|
|
|
<xpath expr='//field[@name="child_ids"]' position="attributes"> |
|
|
|
<attribute name="context" operation="python_dict" |
|
|
|
key="default_street3">street3</attribute> |
|
|
|
<attribute |
|
|
|
name="context" |
|
|
|
operation="python_dict" |
|
|
|
key="default_street3" |
|
|
|
>street3</attribute> |
|
|
|
</xpath> |
|
|
|
<xpath expr="/form//field[@name='child_ids']/form//field[@name='street2']" |
|
|
|
position="after"> |
|
|
|
<field name="street3" placeholder="Street 3..." class="o_address_street"/> |
|
|
|
<xpath |
|
|
|
expr="/form//field[@name='child_ids']/form//field[@name='street2']" |
|
|
|
position="after" |
|
|
|
> |
|
|
|
<field name="street3" placeholder="Street 3..." class="o_address_street" /> |
|
|
|
</xpath> |
|
|
|
<xpath expr="/form//field[@name='child_ids']/kanban/field[@name='street2']" |
|
|
|
position="after"> |
|
|
|
<field name="street3"/> |
|
|
|
<xpath |
|
|
|
expr="/form//field[@name='child_ids']/kanban/field[@name='street2']" |
|
|
|
position="after" |
|
|
|
> |
|
|
|
<field name="street3" /> |
|
|
|
</xpath> |
|
|
|
</field> |
|
|
|
</record> |
|
|
@ -31,10 +41,10 @@ |
|
|
|
<record id="res_partner_kanban_view" model="ir.ui.view"> |
|
|
|
<field name="name">add street 3 in kanban</field> |
|
|
|
<field name="model">res.partner</field> |
|
|
|
<field name="inherit_id" ref="base.res_partner_kanban_view"/> |
|
|
|
<field name="inherit_id" ref="base.res_partner_kanban_view" /> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<field name="street2" position="after"> |
|
|
|
<field name="street3"/> |
|
|
|
<field name="street3" /> |
|
|
|
</field> |
|
|
|
</field> |
|
|
|
</record> |
|
|
@ -42,10 +52,10 @@ |
|
|
|
<record id="view_partner_address_form" model="ir.ui.view"> |
|
|
|
<field name="name">add street 3 in res.partner.form.address</field> |
|
|
|
<field name="model">res.partner</field> |
|
|
|
<field name="inherit_id" ref="base.view_partner_address_form"/> |
|
|
|
<field name="inherit_id" ref="base.view_partner_address_form" /> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<field name="street2" position="after"> |
|
|
|
<field name="street3" placeholder="Street 3..." class="o_address_street"/> |
|
|
|
<field name="street3" placeholder="Street 3..." class="o_address_street" /> |
|
|
|
</field> |
|
|
|
</field> |
|
|
|
</record> |
|
|
@ -53,10 +63,14 @@ |
|
|
|
<record id="res_partner_view_form_private" model="ir.ui.view"> |
|
|
|
<field name="name">add street 3 in res.partner.form.private</field> |
|
|
|
<field name="model">res.partner</field> |
|
|
|
<field name="inherit_id" ref="base.res_partner_view_form_private"/> |
|
|
|
<field name="inherit_id" ref="base.res_partner_view_form_private" /> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<field name="street2" position="after"> |
|
|
|
<field name="street3" placeholder="Street 3..." class="o_address_street"/> |
|
|
|
<field |
|
|
|
name="street3" |
|
|
|
placeholder="Street 3..." |
|
|
|
class="o_address_street" |
|
|
|
/> |
|
|
|
</field> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|