mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] account_payment_partner: Set invisible according to type, no context
This commit is contained in:
@@ -31,8 +31,7 @@
|
||||
name="payment_mode_id"
|
||||
domain="[('payment_type', '=', payment_mode_filter_type_domain), ('company_id', '=', company_id)]"
|
||||
widget="selection"
|
||||
attrs="{'readonly': [('state', '!=', 'draft')]}"
|
||||
invisible="context.get('default_type') not in ('out_invoice','out_refund','in_invoice','in_refund')"
|
||||
attrs="{'readonly': [('state', '!=', 'draft')], 'invisible': [('type', 'not in', ('out_invoice','out_refund','in_invoice','in_refund'))]}"
|
||||
/>
|
||||
<field name="commercial_partner_id" invisible="1" />
|
||||
<field name="bank_account_required" invisible="1" />
|
||||
|
||||
Reference in New Issue
Block a user