Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17 mig mail quoted reply #1456

Open
wants to merge 38 commits into
base: 17.0
Choose a base branch
from

Conversation

jaenbox
Copy link

@jaenbox jaenbox commented Oct 4, 2024

supersede #1354

etobella and others added 30 commits October 4, 2024 11:11
Currently translated at 100.0% (8 of 8 strings)

Translation: social-14.0/social-14.0-mail_quoted_reply
Translate-URL: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_quoted_reply/ca/
Currently translated at 100.0% (8 of 8 strings)

Translation: social-14.0/social-14.0-mail_quoted_reply
Translate-URL: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_quoted_reply/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-15.0/social-15.0-mail_quoted_reply
Translate-URL: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_quoted_reply/
Completed the migration to 16.0 incl. the upgrade to the OWL framework to make it more lean and reliable for the future.
This commit adds functionality to include the original subject of a message when composing a quoted reply. The `get_record_data` method in the `MailComposeMessage` model has been updated to check if there is a default subject and, if so, prepend "Re: " to it. This ensures that the new subject for the quoted reply includes a "Re:" prefix.
_prep_quoted_reply_body. put the format date in the env format

[15][IMP]mail_quoted_reply: Added signature, and translate fields

Make it: From, Date, Subject Strings translate
Addded User Signature

Update mail_message.py

Update CONTRIBUTORS.rst
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-16.0/social-16.0-mail_quoted_reply
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_quoted_reply/
Without this, it is not possible to do a copy paste of a block of
text into the mail composer.
Currently translated at 100.0% (6 of 6 strings)

Translation: social-16.0/social-16.0-mail_quoted_reply
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_quoted_reply/es/
@grindtildeath
Copy link
Contributor

grindtildeath commented Nov 7, 2024

@jaenbox Thanks for the mig. Can you please get this commit as well?
Ontinet-com#1

As we are adding HTML from external messages into the mail composer
HTML widget, we do not control what is in there and it could break
the webclient or making it unresponsive depending on its content.

Sanitizing the body of the quoted message might not solve all the
issues, but it at least provides a hook for extra processing.
Copy link
Contributor

@grindtildeath grindtildeath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.