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

[18.0] [MIG] mail_quoted_reply: Migration to 18.0 #24

Open
wants to merge 28 commits into
base: 18.0
Choose a base branch
from

Conversation

Borruso
Copy link

@Borruso Borruso commented Jan 23, 2025

issue (social): OCA/social#1458

etobella and others added 28 commits January 23, 2025 15:32
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/
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
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/
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/it/
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.
@Borruso Borruso force-pushed the 18.0-mig-mail_quoted_reply branch from 3ab485b to 1f02071 Compare January 23, 2025 15:59
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.