[ADD] name of parent case and name with initials
This commit is contained in:
parent
39893f2ba0
commit
be39ad9c41
@ -4,6 +4,14 @@ from odoo import api, fields, models
|
|||||||
class ResPartner(models.Model):
|
class ResPartner(models.Model):
|
||||||
_inherit = 'res.partner'
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
|
name_parent_case = fields.Char(
|
||||||
|
string='Name Parent Case',
|
||||||
|
help='Full Name Of Parent Case',
|
||||||
|
)
|
||||||
|
name_initials_case = fields.Char(
|
||||||
|
string='Name Initials Case',
|
||||||
|
help='Last Name with Initials',
|
||||||
|
)
|
||||||
client_contract_ids = fields.One2many(
|
client_contract_ids = fields.One2many(
|
||||||
'res.partner.contract',
|
'res.partner.contract',
|
||||||
'partner_id',
|
'partner_id',
|
||||||
|
@ -20,6 +20,13 @@
|
|||||||
<field name="inherit_id" ref="base.view_partner_form" />
|
<field name="inherit_id" ref="base.view_partner_form" />
|
||||||
<field name="priority" eval="25"/>
|
<field name="priority" eval="25"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//field[@name='type']" position="before">
|
||||||
|
|
||||||
|
<field name="name" attrs="{'invisible': [('company_type', '=', 'company')]}"/>
|
||||||
|
<field name="name_parent_case" attrs="{'invisible': [('company_type', '=', 'company')]}"/>
|
||||||
|
<field name="name_initials_case" attrs="{'invisible': [('company_type', '=', 'company')]}"/>
|
||||||
|
|
||||||
|
</xpath>
|
||||||
<xpath expr="//field[@name='category_id']" position="after">
|
<xpath expr="//field[@name='category_id']" position="after">
|
||||||
|
|
||||||
<field name="representative_id" domain="[('company_type', '=', 'person')]" attrs="{'invisible': [('company_type', '!=', 'company')]}"/>
|
<field name="representative_id" domain="[('company_type', '=', 'person')]" attrs="{'invisible': [('company_type', '!=', 'company')]}"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user