From a8ea93227cbd48f3d127db9e7cda375bdb6f3893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 18 Dec 2008 20:14:06 +0100 Subject: [PATCH] Fix invoice domain on statement line --- statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)", })