diff --git a/partner_communication/models/communication_job.py b/partner_communication/models/communication_job.py
index ab5da275e..3b6ec3afa 100644
--- a/partner_communication/models/communication_job.py
+++ b/partner_communication/models/communication_job.py
@@ -816,6 +816,12 @@ def preview_pdf(self):
"target": "new",
}
+ def preview_pdf_report(self):
+ self.ensure_one()
+ return self.report_id.with_context(
+ lang=self.partner_id.lang, must_skip_send_to_printer=True
+ ).report_action(self.ids, config=False)
+
def download_data(self):
action = {
"type": "ir.actions.act_window",
diff --git a/partner_communication/views/communication_job_view.xml b/partner_communication/views/communication_job_view.xml
index 29f4fbe7e..debddd77f 100644
--- a/partner_communication/views/communication_job_view.xml
+++ b/partner_communication/views/communication_job_view.xml
@@ -82,6 +82,14 @@
icon="fa-search-plus"
class="oe_stat_button"
invisible="state != 'pending'"
+ />
+