Instanciate company report

Fix typo
Add user signature
This commit is contained in:
Cédric Krier committed 2008-08-23 01:21:51 +02:00
1 parent 275ae92d30
commit 4afab784db
2 files changed
+18

No files matched your search

+18
View File
@@ -208,3 +208,21 @@ class CompanyReport(Report):
import trytond.report
trytond.report.CompanyReport = CompanyReport
class LetterReport(CompanyReport):
_name = 'party.letter'
def parse(self, cursor, user_id, report, objects, datas, context):
user_obj = self.pool.get('res.user')
user = user_obj.browse(cursor, user_id, user_id, context)
if context is None:
context = {}
context = context.copy()
context['user'] = user
return super(CompanyReport, self).parse(cursor, user_id, report,
objects, datas, context)
LetterReport()
BIN
View File
Binary file not shown.