Add missing filter on company in GeneralJournal report

review727002
(transplanted from 85324c3f826e3bf63aab718edecc7e0fdc292f9b)
This commit is contained in:
Cédric Krier committed 2013-03-22 18:53:12 +01:00
1 parent 4837188c43
commit 2e7f30bbd4
1 file changed
+1
+1
View File
@@ -1719,6 +1719,7 @@ class GeneralJournal(Report):
clause = [
('date', '>=', datas['form']['from_date']),
('date', '<=', datas['form']['to_date']),
('period.fiscalyear.company', '=', datas['form']['company']),
]
if datas['form']['posted']:
clause.append(('state', '=', 'posted'))