[IMP] hr_contract: Hide bank account when no partner is set on employee

As the bank account should be linked to the same partner than the
address_home_id, it makes no sense to display it if this field is not
set.
This commit is contained in:
Florian Gilbert
2019-06-11 09:31:56 +02:00
committed by Yannick Tivisse
parent 2b5b22dcdc
commit 9d758e9cfe
@@ -35,7 +35,7 @@
</group>
</xpath>
<xpath expr="//field[@name='bank_account_id']" position="replace">
<field name="bank_account_id" context="{'display_partner':True}"/>
<field name="bank_account_id" context="{'display_partner':True}" attrs="{'invisible' : [('address_home_id', '=', False)]}"/>
</xpath>
</data>
</field>