Skip to content

Commit

Permalink
[base]IMP: Improved logger message of PDF report generation
Browse files Browse the repository at this point in the history
closes #31891

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
  • Loading branch information
sswapnesh committed Mar 16, 2019
1 parent 5356f36 commit 9bfe6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odoo/addons/base/models/ir_actions_report.py
Expand Up @@ -698,7 +698,7 @@ def render_qweb_pdf(self, res_ids=None, data=None):
set_viewport_size=context.get('set_viewport_size'),
)
if res_ids:
_logger.info('The PDF report has been generated for records %s.' % (str(res_ids)))
_logger.info('The PDF report has been generated for model: %s, records %s.' % (self.model, str(res_ids)))
return self._post_pdf(save_in_attachment, pdf_content=pdf_content, res_ids=html_ids), 'pdf'
return pdf_content, 'pdf'

Expand Down

0 comments on commit 9bfe6ef

Please sign in to comment.