From d99cdd44106726d4f3431bd8bcc270853dbfeb2e Mon Sep 17 00:00:00 2001 From: Tobias Paepke Date: Thu, 14 Oct 2010 21:30:21 +0200 Subject: [PATCH] localcontext needs object, not id. Fixes issue1725 --- company.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/company.py b/company.py index 055f08ecb7..adbeb6a0f9 100644 --- a/company.py +++ b/company.py @@ -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)