mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_payment_partner: only use bank_account_required in bills
This commit is contained in:
committed by
Thomas Binsfeld
parent
04573fce9a
commit
e40ed0979c
@@ -40,8 +40,9 @@
|
||||
'|',('company_id', '=', company_id),('company_id', '=', False)]
|
||||
</attribute>
|
||||
<attribute name="attrs">
|
||||
{'required': [('bank_account_required', '=', True)], 'readonly':
|
||||
[('state', '!=', 'draft')]}
|
||||
{'required': [('bank_account_required', '=', True),('move_type', 'in', ('in_invoice', 'in_refund'))],
|
||||
'readonly': [('state', '!=', 'draft')],
|
||||
'invisible': [('move_type', '=', 'entry')]}
|
||||
</attribute>
|
||||
<attribute name="context">
|
||||
{'default_partner_id':commercial_partner_id}
|
||||
|
||||
Reference in New Issue
Block a user