[MERGE] account_banking: account field on bank.statement.line had an attr which would make the field readonly in inappropriate times.

This commit is contained in:
Niels Huylebroeck
2014-04-08 17:30:37 +02:00

View File

@@ -250,7 +250,7 @@
</xpath>
<xpath expr="//field[@name='line_ids']/tree//field[@name='account_id']"
position="attributes">
<attribute name="attrs">{'readonly': ['|', ('state', '!=', 'draft'), ('match_type', '!=', '')]}</attribute>
<attribute name="attrs">{'readonly': ['|', ('state', '!=', 'draft'), ('match_type', '!=', False)]}</attribute>
</xpath>
<xpath expr="//field[@name='line_ids']/tree/field[@name='amount']"
position="after">