Fix typo in Move.query_get: fiscalyear is on period, not move
issue3669
This commit is contained in:
1 parent
5908d38458
commit
c688210e9d
1 file changed
+1
-1
@@ -1112,7 +1112,7 @@ class Line(ModelSQL, ModelView):
|
|||||||
& table.move.in_(move.join(period,
|
& table.move.in_(move.join(period,
|
||||||
condition=move.period == period.id
|
condition=move.period == period.id
|
||||||
).select(move.id,
|
).select(move.id,
|
||||||
where=(move.fiscalyear == fiscalyear_id)
|
where=(period.fiscalyear == fiscalyear_id)
|
||||||
& (move.date <= Transaction().context['date'])
|
& (move.date <= Transaction().context['date'])
|
||||||
& (move.state == 'posted'))),
|
& (move.state == 'posted'))),
|
||||||
[f.id for f in fiscalyears])
|
[f.id for f in fiscalyears])
|
||||||
|
|||||||
Reference in new issue
Block a user