-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
[16.0][MIG] mail_template_substitute: Migration to 16.0 #1120
[16.0][MIG] mail_template_substitute: Migration to 16.0 #1120
Conversation
This module allows you to create substitution rules for mail templates. A typical use case is to replace a standard template by alternative templates when some conditions are met. For instance, it allows to configure alternate templates for different companies.
Wrong title name. |
@pedrobaeza Modified it. |
35ff2ae
to
c4c34bf
Compare
@hbrunn Can we get this merged? |
c4c34bf
to
93e7c8e
Compare
@amkarthik please remove your last commit |
93e7c8e
to
527be51
Compare
@hbrunn removed it. |
This PR has the |
/ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at c7ed17a. Thanks a lot for contributing to OCA. ❤️ |
) | ||
if substitution_template: | ||
self.template_id = substitution_template | ||
return super().onchange_template_id_wrapper() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amkarthik this fails as the super function has an underscore: https://github.com/OCA/OCB/blob/16.0/addons/mail/wizard/mail_compose_message.py#L176
please submit a fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed at #1432
mail_template_substitute: Migration to 16.0
Depends on OCA/reporting-engine#700