Skip to content

Commit

Permalink
[FIX] account: do not check for company logo when printing reports
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kebeclibre committed Nov 13, 2018
1 parent 8f99013 commit c70bdd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account/wizard/account_report_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ def check_report(self):
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)

0 comments on commit c70bdd0

Please sign in to comment.