changeset 14afd35c475e in modules/company:default
details: https://hg.tryton.org/modules/company?cmd=changeset&node=14afd35c475e
description:
        Allow to execute reports without records

        issue10409
        review355391002
diffstat:

 company.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (10 lines):

diff -r 198a51be7fc6 -r 14afd35c475e company.py
--- a/company.py        Tue Aug 17 10:21:19 2021 +0200
+++ b/company.py        Thu Sep 02 23:19:36 2021 +0200
@@ -148,5 +148,5 @@
     @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

Reply via email to