From c688210e9d4142223737fb94de2a2ccdba51e8d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 11 Feb 2014 18:02:27 +0100 Subject: [PATCH] Fix typo in Move.query_get: fiscalyear is on period, not move issue3669 --- move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/move.py b/move.py index 1a7f24f5e2..83074807f6 100644 --- a/move.py +++ b/move.py @@ -1112,7 +1112,7 @@ class Line(ModelSQL, ModelView): & table.move.in_(move.join(period, condition=move.period == period.id ).select(move.id, - where=(move.fiscalyear == fiscalyear_id) + where=(period.fiscalyear == fiscalyear_id) & (move.date <= Transaction().context['date']) & (move.state == 'posted'))), [f.id for f in fiscalyears])