[7.0] Raise exception when ir_attachment creation fails

Odoo PR: https://github.com/odoo/odoo/pull/1514

> Currently, report creation failures are silent except for a message in the logs. We propose, with this pull request, to explicitely raise them to the user.