Fix invoice domain on statement line
This commit is contained in:
1 parent
0303197fa7
commit
a8ea93227c
1 file changed
+1
-1
+1
-1
@@ -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)",
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user