[FIX] account: bank account field of the transactions in a bank statement
- Field is readonly when the statement is closed - Only bank accounts with the same partner as the transaction or no partner can be selected
This commit is contained in:
parent
d1be21dfdf
commit
32b4ded242
|
@ -616,7 +616,8 @@
|
|||
<field name="amount" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
|
||||
<field name="amount_currency" groups="base.group_multi_currency" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
|
||||
<field name="currency_id" groups="base.group_multi_currency" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
|
||||
<field name="bank_account_id" groups="base.group_no_one"/>
|
||||
<field name="bank_account_id" groups="base.group_no_one" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"
|
||||
domain="['|', ('partner_id', '=', partner_id), ('partner_id', '=', False)]"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
|
|
Loading…
Reference in New Issue