Fix typo in Move.query_get: fiscalyear is on period, not move
issue3669 (transplanted from ca11e2b3c46cb384d29f19d173890001615b95e1)
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user