[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:
Arthur Maniet
2015-02-16 11:55:45 +01:00
parent d1be21dfdf
commit 32b4ded242
+2 -1
View File
@@ -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>