Fix typo in Move.query_get: fiscalyear is on period, not move

issue3669
(transplanted from ca11e2b3c46cb384d29f19d173890001615b95e1)
This commit is contained in:
Cédric Krier
2014-02-11 18:02:27 +01:00
parent 6e550ad8d5
commit 7cd050ae91
+1 -1
View File
@@ -1105,7 +1105,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])