[IMP] make invisible function_genitive because of no use

This commit is contained in:
Stepan Savelyev 2020-01-10 10:17:19 +05:00
parent 05880b6279
commit 53ad6f8002
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class ResPartner(models.Model):
) )
name_genitive = fields.Char(string="Name Genitive",) name_genitive = fields.Char(string="Name Genitive",)
name_initials = fields.Char(string="Name Initials",) name_initials = fields.Char(string="Name Initials",)
function_genitive = fields.Char(string="Function Genitive",) function_genitive = fields.Char(string="Function Genitive",) # TODO: have no use of this
client_contract_ids = fields.One2many( client_contract_ids = fields.One2many(
"res.partner.contract", "partner_id", string="Contracts", "res.partner.contract", "partner_id", string="Contracts",
) )

View File

@ -49,7 +49,7 @@
</xpath> </xpath>
<xpath expr="//field[@name='function']" position="after"> <xpath expr="//field[@name='function']" position="after">
<field name="function_genitive" attrs="{'invisible': [('is_company','=', True)]}"/> <field name="function_genitive" attrs="{'invisible': [('is_company','=', True)]}" invisible="1"/>
</xpath> </xpath>
<xpath expr="//field[@name='email']" position="before"> <xpath expr="//field[@name='email']" position="before">