-
Notifications
You must be signed in to change notification settings - Fork 30k
[IMP] mail: improve mail template usability #101399
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
Conversation
ce99ddf
to
5451145
Compare
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.
Zboing !
addons/mail/models/mail_template.py
Outdated
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.
Would be better to return a domain using fields on template model and avoid additional search queries, like (did not check it was the right one :D )
if operator == '=' and value or operation == '!=' and not value:
return [('active', operator, value), ('description', '!=', False)]
return [('active', operator, value), ('description', '=', False)]
addons/mail/models/mail_template.py
Outdated
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.
Just to keep fields ordered, I would define it under "name" as it is part of the template definition
5451145
to
b43496a
Compare
Upgrade exception #141 added. Waiting the forward-port of this pr, the exception will be applied on all builds, and create an inconsistent state for migrations. If you need to apply any change before it reaches master, please notify runbot team. Details:
|
@robodoo r+ rebase-ff |
@tde-banana-odoo you may want to rebuild or fix this PR as it has failed CI. |
Merge method set to rebase and fast-forward. |
b43496a
to
cb0314b
Compare
@robodoo r+ rebase-ff |
Merge method set to rebase and fast-forward. |
Changes the background color of the digest to follow the company color theme the same way it has been done for the email layout. task-2944770
Allow our users to modify mail template more easily - make the list accessible from the settings - give them a link to update relevant views to update header/footer - make the list and form of templates more readable - add a description on templates, allowing to describe their usage In order to better filter templates, a new category field is added that is computed based on active flag, description being set and the template having an xml ID. Master templates are active, with a description and an xml ID. Update master data to add description on some templates. task-2944770
5499dd6
to
a9b9c98
Compare
@robodoo r+ rebase-ff |
Merge method set to rebase and fast-forward. |
Changes the background color of the digest to follow the company color theme the same way it has been done for the email layout. task-2944770 Part-of: #101399
Allow our users to modify mail template more easily - make the list accessible from the settings - give them a link to update relevant views to update header/footer - make the list and form of templates more readable - add a description on templates, allowing to describe their usage In order to better filter templates, a new category field is added that is computed based on active flag, description being set and the template having an xml ID. Master templates are active, with a description and an xml ID. Update master data to add description on some templates. task-2944770 closes #101399 Related: odoo/enterprise#31916 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Changes the background color of the digest to follow the company color theme the same way it has been done for the email layout. task-2944770 Part-of: #101399
Allow our users to modify mail template more easily - make the list accessible from the settings - give them a link to update relevant views to update header/footer - make the list and form of templates more readable - add a description on templates, allowing to describe their usage In order to better filter templates, a new category field is added that is computed based on active flag, description being set and the template having an xml ID. Master templates are active, with a description and an xml ID. Update master data to add description on some templates. task-2944770 closes #101399 Related: odoo/enterprise#31916 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
@Bertrand2 @tde-banana-odoo this pull request has forward-port PRs awaiting action (not merged or closed): |
Allow our users to modify mail template more easily;
task-2944770