Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Odoo mailing-list (channels) and missing pictures

by
DEC, Yann Papouin
- 14/10/2021 16:37:37
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).



--
Yann PAPOUIN, Ingénieur R&D | DEC


Le 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 | DEC


Le 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

Reference