diff --git a/addons/account/wizard/account_move_send.py b/addons/account/wizard/account_move_send.py index 1b959a67655..21403052b71 100644 --- a/addons/account/wizard/account_move_send.py +++ b/addons/account/wizard/account_move_send.py @@ -467,7 +467,7 @@ class AccountMoveSend(models.Model): mail_attachments = [ (attachment.name, attachment.raw) - for attachment in self.env['ir.attachment'].browse(list(seen_attachment_ids)) + for attachment in self.env['ir.attachment'].browse(list(seen_attachment_ids)).exists() ] return {