localcontext needs object, not id. Fixes issue1725

This commit is contained in:
Tobias Paepke committed 2010-10-14 21:30:21 +02:00
1 parent ad78851bc2
commit d99cdd4410
1 file changed
+1 -1
+1 -1
View File
@@ -284,7 +284,7 @@ class CompanyReport(Report):
user = self.pool.get('res.user').browse(Transaction().user)
if localcontext is None:
localcontext = {}
localcontext['company'] = user.company.id
localcontext['company'] = user.company
return super(CompanyReport, self).parse(report, objects, datas,
localcontext=localcontext)