add or condition

This commit is contained in:
Ruchir Shukla
2014-01-26 18:06:41 +05:30
parent 412df15946
commit 7d28a6e524

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', 'in', ('move', 'payment'))]}</attribute>
<attribute name="attrs">{'readonly': ['|', ('state', '!=', 'draft'), ('match_type', 'in', ('move', 'payment'))]}</attribute>
</xpath>
<xpath expr="//field[@name='line_ids']/tree/field[@name='amount']"
position="after">