diff --git a/addons/account/models/ir_actions_report.py b/addons/account/models/ir_actions_report.py index 947bec15fb64795cbcb14ef06d0c533e1e750fde..a00f2e430a6285e432e1d30cca6a6d2714474304 100644 --- a/addons/account/models/ir_actions_report.py +++ b/addons/account/models/ir_actions_report.py @@ -12,8 +12,6 @@ class IrActionsReport(models.Model): if record.message_main_attachment_id.mimetype == 'application/pdf' or \ record.message_main_attachment_id.mimetype.startswith('image'): return record.message_main_attachment_id - if self.report_name in ('account.report_invoice_with_payments', 'account.report_invoice') and not record.is_invoice(): - raise UserError(_("Only invoices could be printed.")) return super(IrActionsReport, self).retrieve_attachment(record) def _post_pdf(self, save_in_attachment, pdf_content=None, res_ids=None):