- Mailing Lists
- Contributors
- Re: Odoo mailing-list (channels) and missing pictures
Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
Contributors
Re: Odoo mailing-list (channels) and missing pictures
Yann PAPOUIN, Ingénieur R&D | DEC
Thank you, I will take a look on this module--
Yann PAPOUIN, Ingénieur R&D | DECLe mar. 5 oct. 2021 à 18:27, Holger Brunn <mail@hunki-enterprises.com> a écrit :> The access_token is working perfectly but the img src is not composed using > a FQDN ... Is there a module-workaround for this ? If not, I will have to > create a fix, does someone know where it occurred in the code ? https://github.com/OCA/OCB/blob/14.0/addons/mail/models/mail_thread.py#L1779 This could be fixable by simply adding a base tag to the email html https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base but that's not supported in some mail clients like Outlook. You might want to migrate https://github.com/OCA/social/tree/10.0/mail_embed_image to have Odoo send mails with embedded images, but for mailinglists that's not such a good choice because it would blow up the amount of traffic tremendously. -- Your partner for the hard Odoo problems https://hunki-enterprises.com_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Yann Papouin - 04:40 - 14 Oct 2021
Reference
-
Odoo mailing-list (channels) and missing pictures
Hi everyone,I'm currently stuck on an Odoo behaviour about pictures in email sent on Odoo mailing-lists.I'm pretty sure that you already noticed this behaviour on this list: instead of seeing your picture, you see its alt attribute as "picture-of-thing.png".That's because when the mail is sent to Odoo, it converts base64 pictures to attachments and the mail content is transformed with an img tag<img src="/web/image/521951?access_token=a8301246-ab90-46a5-9dfe-eff9df3dafb4" alt=" picture-of-thing.png" width="437" height="562">The access_token is working perfectly but the img src is not composed using a FQDN ...Is there a module-workaround for this ?If not, I will have to create a fix, does someone know where it occurred in the code ?
Yann PAPOUIN
Ingénieur R&D | DEC
A ZAC du Monné 3 r Champ du Verger 72700 ALLONNES
T 02 43 21 65 50 ext 51 F 02 43 39 30 78 E ypa@decgroupe.com W www.decgroupe.com
by Yann Papouin - 05:16 - 5 Oct 2021-
Re: Odoo mailing-list (channels) and missing pictures
Found the culprit, current implementation breaks inheritance on `_send_prepare_body` and I don't understand why they used the body field from 'mail.message' instead of body_html from 'mail.mail' (at this point, the body_html field is already properly formatted since `_replace_local_links` has already been called on it).PR to fix this issue: https://github.com/odoo/odoo/pull/78390--
Yann PAPOUIN, Ingénieur R&D | DECLe ven. 8 oct. 2021 à 08:39, Yann Papouin <ypa@decgroupe.com> a écrit :Thank you, I will take a look on this module--
Yann PAPOUIN, Ingénieur R&D | DECLe mar. 5 oct. 2021 à 18:27, Holger Brunn <mail@hunki-enterprises.com> a écrit :> The access_token is working perfectly but the img src is not composed using > a FQDN ... Is there a module-workaround for this ? If not, I will have to > create a fix, does someone know where it occurred in the code ? https://github.com/OCA/OCB/blob/14.0/addons/mail/models/mail_thread.py#L1779 This could be fixable by simply adding a base tag to the email html https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base but that's not supported in some mail clients like Outlook. You might want to migrate https://github.com/OCA/social/tree/10.0/mail_embed_image to have Odoo send mails with embedded images, but for mailinglists that's not such a good choice because it would blow up the amount of traffic tremendously. -- Your partner for the hard Odoo problems https://hunki-enterprises.com
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Yann Papouin - 04:40 - 14 Oct 2021 -
Re: Odoo mailing-list (channels) and missing pictures
Thank you, I will take a look on this module--
Yann PAPOUIN, Ingénieur R&D | DECLe mar. 5 oct. 2021 à 18:27, Holger Brunn <mail@hunki-enterprises.com> a écrit :> The access_token is working perfectly but the img src is not composed using > a FQDN ... Is there a module-workaround for this ? If not, I will have to > create a fix, does someone know where it occurred in the code ? https://github.com/OCA/OCB/blob/14.0/addons/mail/models/mail_thread.py#L1779 This could be fixable by simply adding a base tag to the email html https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base but that's not supported in some mail clients like Outlook. You might want to migrate https://github.com/OCA/social/tree/10.0/mail_embed_image to have Odoo send mails with embedded images, but for mailinglists that's not such a good choice because it would blow up the amount of traffic tremendously. -- Your partner for the hard Odoo problems https://hunki-enterprises.com
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Yann Papouin - 08:40 - 8 Oct 2021 -
Re: Odoo mailing-list (channels) and missing pictures
> The access_token is working perfectly but the img src is not composed using > a FQDN ... Is there a module-workaround for this ? If not, I will have to > create a fix, does someone know where it occurred in the code ? https://github.com/OCA/OCB/blob/14.0/addons/mail/models/mail_thread.py#L1779 This could be fixable by simply adding a base tag to the email html https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base but that's not supported in some mail clients like Outlook. You might want to migrate https://github.com/OCA/social/tree/10.0/mail_embed_image to have Odoo send mails with embedded images, but for mailinglists that's not such a good choice because it would blow up the amount of traffic tremendously. -- Your partner for the hard Odoo problems https://hunki-enterprises.com
by Holger Brunn - 06:25 - 5 Oct 2021
-