Allow having in an attachment as well as an error in the same document. This will allow to see the document that generates the error, and easy the process of debugging. closes odoo/odoo#60599 X-original-commit: 7313e9823fffcac747af633b9b1694aa661dfa1f Related: odoo/enterprise#14357 Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>