changeset 67b2e25ac354 in modules/account:5.0
details: https://hg.tryton.org/modules/account?cmd=changeset;node=67b2e25ac354
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 cfd6f2db8eaf -r 67b2e25ac354 move.py
--- a/move.py   Fri Nov 08 19:58:26 2019 +0100
+++ b/move.py   Wed Dec 18 09:19:03 2019 +0100
@@ -986,8 +986,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