localcontext needs object, not id. Fixes issue1725
This commit is contained in:
1 parent
ad78851bc2
commit
d99cdd4410
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user