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

[15.0][IMP][mail_show_follower] Customize notification appearance #866

Conversation

Shide
Copy link
Contributor

@Shide Shide commented Mar 18, 2022

Added settings to customize notification and translations to important parts of the message.

show_followers_message_sent_to: The first part of the message
show_followers_partner_format: Partner format for emails. You can chooose which fields to show
show_followers_message_response_warning: Additional text if you want to warn for the reply behavior

Includes a preview of the message on settings (only visible if you are in debug mode)
The lang of the message is on the same as the recipient. Some customization settings are translatable (enable another language to test properly)

@yajo @rafaelbn @HaraldPanten @ValentinVinagre @pedrobaeza @flotho @cvinh @tafaRU please review 😄

MT-431 @moduon

@rafaelbn rafaelbn changed the title [ADD] Customize notification appearance [15.0][IMP][mail_show_follower] Customize notification appearance Mar 18, 2022
Copy link
Member

@rafaelbn rafaelbn left a comment

Choose a reason for hiding this comment

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

Amazing! Thank you! 👍

@cvinh you have here all you need

@rafaelbn rafaelbn added this to the 15.0 milestone Mar 18, 2022
Copy link
Member

@yajo yajo left a comment

Choose a reason for hiding this comment

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

Thanks! It seems a good job indeed. I feel it's a bit over-engineered on some points, commented below.

Please attend those comments, to reduce the feature set to only what's really needed, so it becomes more maintainable.

Also, if possible, add tests.

Apart from that, the core feature you're adding seems a great addition indeed. Good job, thanks!

mail_show_follower/models/res_company.py Outdated Show resolved Hide resolved
mail_show_follower/models/res_company.py Outdated Show resolved Hide resolved
mail_show_follower/models/res_company.py Outdated Show resolved Hide resolved
mail_show_follower/models/res_company.py Outdated Show resolved Hide resolved
@Shide Shide force-pushed the 15.0-improve_mail_show_follower-mail_show_follower branch from 98a317e to 6238e44 Compare March 21, 2022 15:34
@Shide Shide force-pushed the 15.0-improve_mail_show_follower-mail_show_follower branch 2 times, most recently from 4a5358c to 38ba924 Compare March 22, 2022 08:06
@Shide Shide requested a review from yajo March 22, 2022 08:07
Copy link
Member

@yajo yajo left a comment

Choose a reason for hiding this comment

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

The improvement looks a lot better now!

There's one point where I think it still needs a bit of enhancement, and other points where I have suggestions or doubts.

Thanks for your great job and patience, this is becoming in very good shape. 😊

mail_show_follower/models/mail_mail.py Show resolved Hide resolved
mail_show_follower/models/mail_mail.py Outdated Show resolved Hide resolved
mail_show_follower/models/res_company.py Outdated Show resolved Hide resolved
mail_show_follower/models/mail_mail.py Show resolved Hide resolved
mail_show_follower/models/res_config_settings.py Outdated Show resolved Hide resolved
mail_show_follower/views/res_config_settings.xml Outdated Show resolved Hide resolved
Added settings to customize notification and translations to important parts of the message.

[FIX] Security fixes and simplified customization

Field `show_followers_partner_format` formatted with %(param)s
Removed CSS customizations

[FIX] README options

[FIX] Index.html configure

[FIX] Several changes

- Removed unnecesary properties on res_config_settings
- Markup safe on partner_format
- Use email_domain_extract instead own one
@Shide Shide force-pushed the 15.0-improve_mail_show_follower-mail_show_follower branch from 38ba924 to 59966f0 Compare March 22, 2022 13:56
@Shide Shide requested a review from yajo March 22, 2022 13:56
@yajo
Copy link
Member

yajo commented Mar 28, 2022

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-866-by-Yajo-bump-minor, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Mar 28, 2022
Signed-off-by Yajo
@OCA-git-bot
Copy link
Contributor

@yajo your merge command was aborted due to failed check(s), which you can inspect on this commit of 15.0-ocabot-merge-pr-866-by-Yajo-bump-minor.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@yajo
Copy link
Member

yajo commented Mar 28, 2022

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-866-by-Yajo-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ebfd9bc into OCA:15.0 Mar 28, 2022
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 02846ae. Thanks a lot for contributing to OCA. ❤️

@Shide Shide deleted the 15.0-improve_mail_show_follower-mail_show_follower branch March 28, 2022 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants