[IMP] name_write only company visible

This commit is contained in:
Stepan Savelyev 2020-01-10 10:11:51 +05:00
parent 16cc29f42c
commit 9a67a6e387

View File

@ -36,7 +36,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='type']" position="before"> <xpath expr="//field[@name='type']" position="before">
<field name="name_write" placeholder="i.e. Ural Bank for Reconstruction and Development"/> <field name="name_write" placeholder="i.e. Ural Bank for Reconstruction and Development" attrs="{'invisible': [('is_company', '=', False)]}"/>
<field name="name_genitive" attrs="{'invisible': [('is_company', '=', True)]}"/> <field name="name_genitive" attrs="{'invisible': [('is_company', '=', True)]}"/>
<field name="name_initials" attrs="{'invisible': [('is_company', '=', True)]}"/> <field name="name_initials" attrs="{'invisible': [('is_company', '=', True)]}"/>
</xpath> </xpath>