Since Odoo 18, emails coming in to an alias creating account moves (vendor bills) get rejected if they do not contain an attachment that can be read by the system. This means that sending a plain email receipt with no attachment bounces, when it would be nice to have a vendor bill with the message in the chatter as a minimum. This module checks for attachments and injects one, in the form of a simple pdf containing the email header and contents, if there was no attachment to begin with. This should enable sending of a simple email and not having it bounce due to there being no attachment.
23 lines
745 B
Python
23 lines
745 B
Python
{
|
|
'name': 'Account Email to PDF',
|
|
'version': '18.0.1.0.0',
|
|
'category': 'Accounting',
|
|
'summary': 'Convert email messages to PDF attachments for vendor bills',
|
|
'description': """
|
|
Account Email to PDF
|
|
===================
|
|
This module converts email messages without attachments into PDF attachments
|
|
when processing incoming emails for vendor bills.
|
|
|
|
Instead of rejecting emails without attachments, the system will create a PDF
|
|
from the email content and attach it to the message, allowing the vendor bill
|
|
creation process to continue.
|
|
""",
|
|
'author': 'Bemade',
|
|
'website': 'https://bemade.org',
|
|
'depends': ['account'],
|
|
'data': [],
|
|
'installable': True,
|
|
'auto_install': False,
|
|
'license': 'LGPL-3',
|
|
}
|