changeset 027c260dcf59 in modules/account:5.2
details: https://hg.tryton.org/modules/account?cmd=changeset;node=027c260dcf59
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 6b02862ff14f -r 027c260dcf59 move.py
--- a/move.py   Mon Dec 02 20:59:08 2019 +0100
+++ b/move.py   Wed Dec 18 09:19:03 2019 +0100
@@ -994,8 +994,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