changeset 7a0e92cc4c81 in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset;node=7a0e92cc4c81
description:
        Do not exclude draft moves on Move.query_get

        issue8912
        review280611002
diffstat:

 move.py |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r b828029bdc11 -r 7a0e92cc4c81 move.py
--- a/move.py   Wed Dec 18 09:16:34 2019 +0100
+++ b/move.py   Wed Dec 18 09:19:03 2019 +0100
@@ -1023,8 +1023,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)

Reply via email to