Skip to content

Commit c70bdd0

Browse files
committed
[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 733ce26, we cannot do a save and print OPW 1904764 closes odoo#28617
1 parent 8f99013 commit c70bdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/account/wizard/account_report_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ def check_report(self):
3636
data['form'] = self.read(['date_from', 'date_to', 'journal_ids', 'target_move'])[0]
3737
used_context = self._build_contexts(data)
3838
data['form']['used_context'] = dict(used_context, lang=self.env.context.get('lang') or 'en_US')
39-
return self._print_report(data)
39+
return self.with_context(discard_logo_check=True)._print_report(data)

0 commit comments

Comments
 (0)