[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 733ce266ef, we cannot do a save and print

OPW 1904764

closes odoo/odoo#28617
This commit is contained in:
Lucas Perais (lpe)
2018-11-13 11:15:24 +00:00
parent 8f99013d01
commit c70bdd0e4e
@@ -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)