From c70bdd0e4e807d5a218b3b389e4573fe505f92e2 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Tue, 13 Nov 2018 11:15:24 +0000 Subject: [PATCH] [FIX] account: do not check for company logo when printing reports Have a company that do not have a logo. Try to print a "PDF report" from the accounting module Before this commit, the simple company form popped up with the purpose of force setting a company logo After this commit, we assume it is not necessary to have a company logo on the reports Note, because of 733ce266ef793652f5958c24e2a8a6f443432552, we cannot do a save and print OPW 1904764 closes odoo/odoo#28617 --- addons/account/wizard/account_report_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/wizard/account_report_common.py b/addons/account/wizard/account_report_common.py index f7cba985485..58090fdde79 100644 --- a/addons/account/wizard/account_report_common.py +++ b/addons/account/wizard/account_report_common.py @@ -36,4 +36,4 @@ class AccountCommonReport(models.TransientModel): data['form'] = self.read(['date_from', 'date_to', 'journal_ids', 'target_move'])[0] used_context = self._build_contexts(data) data['form']['used_context'] = dict(used_context, lang=self.env.context.get('lang') or 'en_US') - return self._print_report(data) + return self.with_context(discard_logo_check=True)._print_report(data)