Can not use notificaton_email on 6.4
Hi,
After upgrade from 6.0 to 6.4 I'm not able to use notification_email.
I receive the follow trace: 20257 140043823036160 [2022-06-17 01:41:40,447] CRITICAL trytond.worker <Task 4691@capydb> failed Traceback (most recent call last): File "/opt/capy/lib/python3.7/site-packages/genshi/input.py", line 155, in _generate self.expat.Parse('', True) xml.parsers.expat.ExpatError: no element found: line 1, column 0 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/capy/lib/python3.7/site-packages/genshi/template/base.py", line 418, in init self._stream = self._parse(source, encoding) File "/opt/capy/lib/python3.7/site-packages/genshi/template/markup.py", line 82, in _parse for kind, data, pos in source: File "/opt/capy/lib/python3.7/site-packages/genshi/core.py", line 274, in _ensure event = next(stream) File "/opt/capy/lib/python3.7/site-packages/genshi/input.py", line 449, in coalesce for kind, data, pos in chain(stream, [(None, None, None)]): File "/opt/capy/lib/python3.7/site-packages/genshi/input.py", line 169, in generate raise ParseError(msg, self.filename, e.lineno, e.offset) genshi.input.ParseError: no element found: line 1, column 0 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/capy/lib/python3.7/site-packages/trytond/worker.py", line 132, in run_task task.run() File "/opt/capy/lib/python3.7/site-packages/trytond/ir/queue.py", line 179, in run instances, *self.data['args'], **self.data['kwargs']) File "/opt/capy/lib/python3.7/site-packages/trytond/ir/trigger.py", line 275, in trigger_action getattr(ActionModel, method)(records, self) File "/opt/capy/lib/python3.7/site-packages/trytond/modules/notification_email/notification.py", line 227, in trigger notification_email.send_email(records, trigger) File "/opt/capy/lib/python3.7/site-packages/trytond/modules/notification_email/notification.py", line 252, in send_email msg = self.get_email(record, from, to, cc, bcc, languagues) File "/opt/capy/lib/python3.7/site-packages/trytond/modules/notification_email/notification.py", line 176, in get_email content, title = get_email(self.content, record, languages) File "/opt/capy/lib/python3.7/site-packages/trytond/report/report.py", line 524, in get_email 'language': language, File "/opt/capy/lib/python3.7/site-packages/trytond/report/report.py", line 228, in execute groups[0], headers[0], data, action_report) File "/opt/capy/lib/python3.7/site-packages/trytond/report/report.py", line 248, in _execute return cls.convert(action, cls.render(action, report_context)) File "/opt/capy/lib/python3.7/site-packages/trytond/report/report.py", line 342, in render template = klass(BytesIO(report.report_content)) File "/opt/capy/lib/python3.7/site-packages/genshi/template/markup.py", line 67, in init allow_exec=allow_exec) File "/opt/capy/lib/python3.7/site-packages/genshi/template/base.py", line 420, in init raise TemplateSyntaxError(e.msg, self.filepath, e.lineno, e.offset) genshi.template.base.TemplateSyntaxError: no element found: line 1, column 0 (, line 1)
I used trytond_notification_email 6.4.1.
The report works fine if I go to the record and download it.