Instanciate company report
Fix typo Add user signature
This commit is contained in:
1 parent
275ae92d30
commit
4afab784db
2 files changed
+18
No files matched your search
+18
@@ -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
Binary file not shown.
Reference in new issue
Block a user