|
@ -2,33 +2,14 @@ |
|
|
<odoo> |
|
|
<odoo> |
|
|
<data> |
|
|
<data> |
|
|
|
|
|
|
|
|
<!-- Declared the same in every module that may need it --> |
|
|
|
|
|
<record id="base.personal_contact_information" model="ir.ui.view"> |
|
|
|
|
|
<field name="name">Personal information page for contacts form</field> |
|
|
|
|
|
|
|
|
<record id="view_personal_information_gender" model="ir.ui.view"> |
|
|
|
|
|
<field name="name">Partner gender</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="inherit_id" ref="base.view_partner_form"/> |
|
|
|
|
|
<field name="priority">2</field> |
|
|
|
|
|
|
|
|
<field name="inherit_id" ref="partner_contact_personal_information_page.personal_information"/> |
|
|
<field name="arch" type="xml"> |
|
|
<field name="arch" type="xml"> |
|
|
<data> |
|
|
<data> |
|
|
<xpath expr="//page[@name='internal_notes']" position="after"> |
|
|
|
|
|
<page name="personal_information_page" |
|
|
|
|
|
string="Personal Information" |
|
|
|
|
|
attrs="{'invisible': [('is_company','=',True)]}"> |
|
|
|
|
|
<group name="personal_information_group"/> |
|
|
|
|
|
</page> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
</data> |
|
|
|
|
|
</field> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record id="personal_contact_information" model="ir.ui.view"> |
|
|
|
|
|
<field name="name">Partner nationality: personal info</field> |
|
|
|
|
|
<field name="model">res.partner</field> |
|
|
|
|
|
<field name="inherit_id" ref="base.personal_contact_information"/> |
|
|
|
|
|
<field name="arch" type="xml"> |
|
|
|
|
|
<data> |
|
|
|
|
|
<xpath expr="//page[@name='personal_information_page']/group[@name='personal_information_group']"> |
|
|
|
|
|
<field name='nationality_id'/> |
|
|
|
|
|
|
|
|
<xpath expr="//group[@name='personal_information_group']"> |
|
|
|
|
|
<field name="gender"/> |
|
|
</xpath> |
|
|
</xpath> |
|
|
</data> |
|
|
</data> |
|
|
</field> |
|
|
</field> |
|
|