changeset c85c08a2f95f in modules/account:5.4
details: https://hg.tryton.org/modules/account?cmd=changeset;node=c85c08a2f95f
description:
Do not exclude draft moves on Move.query_get
issue8912
review280611002
(grafted from 7a0e92cc4c812b08776831b24dbaef1e9ac37e76)
diffstat:
move.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r 3122c77509de -r c85c08a2f95f move.py
--- a/move.py Mon Dec 02 20:58:44 2019 +0100
+++ b/move.py Wed Dec 18 09:19:03 2019 +0100
@@ -1022,8 +1022,7 @@
# Use LEFT JOIN to allow database optimization
# if no joined table is used in the where clause.
- return ((table.state != 'draft')
- & table.move.in_(move
+ return (table.move.in_(move
.join(period, 'LEFT', condition=move.period == period.id)
.join(fiscalyear, 'LEFT',
condition=period.fiscalyear == fiscalyear.id)