diff --git a/addons/account/models/ir_actions_report.py b/addons/account/models/ir_actions_report.py
index a00f2e430a6285e432e1d30cca6a6d2714474304..fca239e7959d0a5748c4f7ee1fc6a96726865f20 100644
--- a/addons/account/models/ir_actions_report.py
+++ b/addons/account/models/ir_actions_report.py
@@ -28,6 +28,6 @@ class IrActionsReport(models.Model):
         if self.report_name == 'account.report_original_vendor_bill':
             return None
         res = super(IrActionsReport, self).postprocess_pdf_report(record, buffer)
-        if self.model == 'account.move' and record.is_sale_document(include_receipts=True):
+        if self.model == 'account.move' and record.state == 'posted' and record.is_sale_document(include_receipts=True):
             self.retrieve_attachment(record).register_as_main_attachment(force=False)
         return res