diff --git a/statement.py b/statement.py index 36ffbfcff3..3ac14cdb80 100644 --- a/statement.py +++ b/statement.py @@ -296,7 +296,7 @@ class Line(OSV): invoice = fields.Many2One('account.invoice', 'Invoice', domain="[('party', '=', party), ('account', '=', account)] " \ "+ (_parent_statement.state == 'draft' and " \ - "[('state', '=', 'open')]) or []", + "[('state', '=', 'open')] or [])", states={ 'readonly': "not bool(amount)", })