Fix invoice domain on statement line

This commit is contained in:
Cédric Krier committed 2008-12-18 20:14:06 +01:00
1 parent 0303197fa7
commit a8ea93227c
1 file changed
+1 -1
+1 -1
View File
@@ -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)",
})