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

issue3669
This commit is contained in:
Cédric Krier
2014-02-11 18:02:27 +01:00
parent 5908d38458
commit c688210e9d
+1 -1
View File
@@ -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])