[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:
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>
|
||||
|
||||
Reference in New Issue
Block a user