From d6bfc36879578c780577449f71959d3e84dfed41 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 14 Nov 2013 13:34:36 +0100 Subject: [PATCH] Fix move queries when filter by posted move issue3493 review1661003 --- move.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/move.py b/move.py index 19453021f3..4e2312604e 100644 --- a/move.py +++ b/move.py @@ -1127,9 +1127,9 @@ class Line(ModelSQL, ModelView): return ((table.state != 'draft') & table.move.in_( move.select(move.id, - where=period.in_( + where=move.period.in_( Transaction().context['periods']) - & move.state == 'posted')), + & (move.state == 'posted'))), fiscalyear_ids) else: return ((table.state != 'draft') @@ -1155,7 +1155,7 @@ class Line(ModelSQL, ModelView): period.select(period.id, where=period.fiscalyear.in_( fiscalyear_ids))) - & move.state == 'posted')), + & (move.state == 'posted'))), fiscalyear_ids) else: return ((table.state != 'draft')