41 lines
1.9 KiB
XML
41 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<data>
|
|
|
|
<record model="ir.ui.view" id="partner_view_property_cusotm">
|
|
<field name="name">partner.view.property</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page[1]" position="before">
|
|
<page invisible="company_type != 'person'" name="personal_info" string='Personal Information'>
|
|
<group>
|
|
<group name="identifcation_info">
|
|
<field name="identification_type"
|
|
invisible="company_type == 'company'"/>
|
|
<field name="identification_number"
|
|
invisible="company_type == 'company'"/>
|
|
<field name="issuer"
|
|
invisible="company_type == 'company'"/>
|
|
<field name="identification_issue_date"
|
|
invisible="company_type == 'company'"/>
|
|
<field name="identification_expiry_date"
|
|
invisible="company_type == 'company'"/>
|
|
<field name="copy_no"
|
|
invisible="company_type == 'company' or identification_type != 'iqama'"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
<xpath expr="//page[@name='sales_purchases']" position="attributes">
|
|
<attribute name="groups">partner_custom.sale_purchase_group</attribute>
|
|
</xpath>
|
|
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|