error when sending email-attachments from model account.invoice

When defining a report from model account.invoice and using the button "Send by Mail" I get this error message:

'The value "out_invoice" for the field "ir_attachment.type" is not in the selection'.