Allow to execute reports without records
issue10409 review355391002 (grafted from 14afd35c475e4e790d96176f35a6a66ed25ac882) --HG-- branch : 6.0
This commit is contained in:
1 parent
f062cb5dc8
commit
a03b805baa
1 file changed
+1
-1
+1
-1
@@ -148,5 +148,5 @@ class CompanyReport(Report):
|
||||
@classmethod
|
||||
def get_context(cls, records, header, data):
|
||||
context = super().get_context(records, header, data)
|
||||
context['company'] = header['company']
|
||||
context['company'] = header.get('company')
|
||||
return context
|
||||
Reference in new issue
Block a user