[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user