Issue 9861

Title
Unable to send report email from sao
Priority
bug
Status
resolved
Nosy list
ced, pokoli, reviewbot, roundup-bot
Assigned to
Keywords
review

Created on 2020-11-21.17:09:17 by pokoli, last changed 5 days ago by roundup-bot.

Messages

New changeset c9fcaf28f4b0 by Sergi Almacellas Abellana in branch 'default':
Convert email body into Text field
https://hg.tryton.org/tryton-env/rev/c9fcaf28f4b0
New changeset 64ef3c03836c by Sergi Almacellas Abellana in branch 'default':
Convert email body into Text field
https://hg.tryton.org/trytond/rev/64ef3c03836c
Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2020-11-21.17:42:44

I confirm that using a Text field for email Body fixes the issue.
Here is review297011002

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2020-11-21.17:39:29

No, when using tryton with the same template the following text is generated:

<div>Hi Dunder Mifflin inc</div><div><br></div><div>Here is your sale quotation</div>

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-11-21.17:37:32

Indeed ir.email body should be a Text not a Char.
It is strange that it works on tryton. Is there no \n set on the body?

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2020-11-21.17:09:17

Since issue9248 is not possible to send an email based on template from sao. The following error is raised:

The value "<div>Hi Dunder Mifflin inc</div>
<div><br>
</div>
<div>Here is your sale quotation<br>
</div>" for field "Body" in "Email" contains some invalid chars "'\n'".

The same works well on tryton

History
Date User Action Args
2020-11-27 20:49:28roundup-botsetmessages: + msg62252
2020-11-27 20:49:23roundup-botsetmessages: + msg62251
nosy: + roundup-bot
status: testing -> resolved
2020-11-21 17:58:20reviewbotsetmessages: + msg62091
nosy: + reviewbot
2020-11-21 17:42:44pokolisetcomponent: + trytond, - sao
keyword: + review
messages: + msg62090
reviews: 297011002
status: chatting -> testing
2020-11-21 17:39:29pokolisetmessages: + msg62089
2020-11-21 17:37:32cedsetmessages: + msg62088
nosy: + ced
status: unread -> chatting
2020-11-21 17:09:17pokolicreate

Showing 10 items. Show all history (warning: this could be VERY long)