OCA-git-bot
5 years ago
committed by
newtratip
1 changed files with 24 additions and 16 deletions
@ -1,45 +1,53 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<odoo> |
<odoo> |
||||
|
|
||||
<!-- Add phone number extension fields for partner --> |
<!-- Add phone number extension fields for partner --> |
||||
<record id="view_partner_simple_form" model="ir.ui.view"> |
<record id="view_partner_simple_form" model="ir.ui.view"> |
||||
<field name="name">view.partner.simple.number.extension.form</field> |
<field name="name">view.partner.simple.number.extension.form</field> |
||||
<field name="model">res.partner</field> |
<field name="model">res.partner</field> |
||||
<field name="inherit_id" ref="base.view_partner_simple_form"/> |
|
||||
|
<field name="inherit_id" ref="base.view_partner_simple_form" /> |
||||
<field name="arch" type="xml"> |
<field name="arch" type="xml"> |
||||
<field name="phone" position="after"> |
<field name="phone" position="after"> |
||||
<field name="phone_extension" string="Extn."/> |
|
||||
|
<field name="phone_extension" string="Extn." /> |
||||
</field> |
</field> |
||||
</field> |
</field> |
||||
</record> |
</record> |
||||
|
|
||||
<record id="view_partner_short_form" model="ir.ui.view"> |
<record id="view_partner_short_form" model="ir.ui.view"> |
||||
<field name="name">view.partner.short form.extension.form</field> |
<field name="name">view.partner.short form.extension.form</field> |
||||
<field name="model">res.partner</field> |
<field name="model">res.partner</field> |
||||
<field name="inherit_id" ref="base.view_partner_short_form"/> |
|
||||
|
<field name="inherit_id" ref="base.view_partner_short_form" /> |
||||
<field name="arch" type="xml"> |
<field name="arch" type="xml"> |
||||
<field name="phone" position="after"> |
<field name="phone" position="after"> |
||||
<field name="phone_extension" string="Extn."/> |
|
||||
|
<field name="phone_extension" string="Extn." /> |
||||
</field> |
</field> |
||||
</field> |
</field> |
||||
</record> |
</record> |
||||
|
|
||||
<record id="view_partner_form" model="ir.ui.view"> |
<record id="view_partner_form" model="ir.ui.view"> |
||||
<field name="name">view.partner.number.extension.form</field> |
<field name="name">view.partner.number.extension.form</field> |
||||
<field name="model">res.partner</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"> |
<field name="arch" type="xml"> |
||||
<field name="phone" position="after"> |
<field name="phone" position="after"> |
||||
<field name="phone_extension" string="Extn."/> |
|
||||
|
<field name="phone_extension" string="Extn." /> |
||||
</field> |
</field> |
||||
<xpath expr="/form/sheet/notebook/page/field/kanban/field[@name='phone']" position="after"> |
|
||||
<field name="phone_extension"/> |
|
||||
|
<xpath |
||||
|
expr="/form/sheet/notebook/page/field/kanban/field[@name='phone']" |
||||
|
position="after" |
||||
|
> |
||||
|
<field name="phone_extension" /> |
||||
</xpath> |
</xpath> |
||||
<xpath expr="//div[hasclass('oe_kanban_details')]/div[@t-if='record.phone.raw_value']" position="after"> |
|
||||
<div t-if="record.phone_extension.raw_value">Ext: <field name="phone_extension"/></div> |
|
||||
|
<xpath |
||||
|
expr="//div[hasclass('oe_kanban_details')]/div[@t-if='record.phone.raw_value']" |
||||
|
position="after" |
||||
|
> |
||||
|
<div t-if="record.phone_extension.raw_value">Ext: <field |
||||
|
name="phone_extension" |
||||
|
/></div> |
||||
</xpath> |
</xpath> |
||||
<xpath expr="/form/sheet/notebook/page/field/form/sheet/group/group/field[@name='phone']" position="after"> |
|
||||
<field name="phone_extension" string="Extn."/> |
|
||||
|
<xpath |
||||
|
expr="/form/sheet/notebook/page/field/form/sheet/group/group/field[@name='phone']" |
||||
|
position="after" |
||||
|
> |
||||
|
<field name="phone_extension" string="Extn." /> |
||||
</xpath> |
</xpath> |
||||
</field> |
</field> |
||||
</record> |
</record> |
||||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue