Skip to content

Conversation

Bertrand2
Copy link
Contributor

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

task-2944770

@robodoo
Copy link
Contributor

robodoo commented Sep 28, 2022

Pull request status dashboard

@C3POdoo C3POdoo requested review from a team and epictete and removed request for a team September 28, 2022 11:31
@C3POdoo C3POdoo added the RD research & development, internal work label Sep 28, 2022
@Bertrand2 Bertrand2 force-pushed the 16.0-mail-template-update-bedo branch from ce99ddf to 5451145 Compare September 28, 2022 12:37
Copy link
Contributor

@tde-banana-odoo tde-banana-odoo left a comment

Choose a reason for hiding this comment

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

Zboing !

Copy link
Contributor

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)]

Copy link
Contributor

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

@Bertrand2 Bertrand2 force-pushed the 16.0-mail-template-update-bedo branch from 5451145 to b43496a Compare September 28, 2022 14:21
@Xavier-Do
Copy link
Contributor

Xavier-Do commented Sep 28, 2022

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.
Please forward port this asap up to master without change. Exception should be forward-ported before the end of the week.

If you need to apply any change before it reaches master, please notify runbot team.

Details:

field:res.config.settings.secondary_color
field:res.config.settings.primary_color
field:mail.template.description
field:mail.template.template_category
field:mail.template.active

cc @KangOl @nseinlet

@tde-banana-odoo
Copy link
Contributor

@robodoo r+ rebase-ff

@robodoo
Copy link
Contributor

robodoo commented Sep 28, 2022

@tde-banana-odoo you may want to rebuild or fix this PR as it has failed CI.

@robodoo
Copy link
Contributor

robodoo commented Sep 28, 2022

Merge method set to rebase and fast-forward.

@tde-banana-odoo tde-banana-odoo force-pushed the 16.0-mail-template-update-bedo branch from b43496a to cb0314b Compare September 28, 2022 18:17
@tde-banana-odoo
Copy link
Contributor

@robodoo r+ rebase-ff

@robodoo
Copy link
Contributor

robodoo commented Sep 28, 2022

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
@tde-banana-odoo tde-banana-odoo force-pushed the 16.0-mail-template-update-bedo branch 2 times, most recently from 5499dd6 to a9b9c98 Compare September 30, 2022 06:50
@tde-banana-odoo
Copy link
Contributor

@robodoo r+ rebase-ff

@robodoo
Copy link
Contributor

robodoo commented Sep 30, 2022

Merge method set to rebase and fast-forward.

robodoo pushed a commit that referenced this pull request Sep 30, 2022
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
robodoo pushed a commit that referenced this pull request Sep 30, 2022
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>
robodoo pushed a commit that referenced this pull request Sep 30, 2022
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
robodoo pushed a commit that referenced this pull request Sep 30, 2022
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>
@robodoo robodoo temporarily deployed to merge September 30, 2022 10:39 Inactive
@robodoo robodoo closed this Sep 30, 2022
@tde-banana-odoo tde-banana-odoo deleted the 16.0-mail-template-update-bedo branch October 3, 2022 09:48
@fw-bot
Copy link
Contributor

fw-bot commented Oct 4, 2022

@Bertrand2 @tde-banana-odoo this pull request has forward-port PRs awaiting action (not merged or closed):
#101730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants