Allow to execute reports without records

issue10409
review355391002
(grafted from 14afd35c475e4e790d96176f35a6a66ed25ac882)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2021-09-02 23:19:36 +02:00
1 parent f062cb5dc8
commit a03b805baa
1 file changed
+1 -1
+1 -1
View File
@@ -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