From 1bea117ece998af310a1a0d6726fb48a36058cd8 Mon Sep 17 00:00:00 2001 From: trisdoan Date: Tue, 5 Nov 2024 11:59:46 +0700 Subject: [PATCH] [IMP] mail_composer_cc_bcc: pre-commit execution --- mail_composer_cc_bcc/README.rst | 18 +++++++++--------- mail_composer_cc_bcc/models/mail_template.py | 6 +++--- .../static/description/index.html | 14 +++++++------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/mail_composer_cc_bcc/README.rst b/mail_composer_cc_bcc/README.rst index 10739461..4e238935 100644 --- a/mail_composer_cc_bcc/README.rst +++ b/mail_composer_cc_bcc/README.rst @@ -17,13 +17,13 @@ Email CC and BCC :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github - :target: https://github.com/OCA/social/tree/17.0/mail_composer_cc_bcc + :target: https://github.com/OCA/social/tree/18.0/mail_composer_cc_bcc :alt: OCA/social .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_composer_cc_bcc + :target: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_composer_cc_bcc :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=17.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -68,8 +68,8 @@ In template form there are two fields to set cc and bcc emails. |email_template_form_cc_bcc| -.. |res_company_form_default_cc_bcc| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_composer_cc_bcc/static/img/res_company_form_default_cc_bcc.png -.. |email_template_form_cc_bcc| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_composer_cc_bcc/static/img/email_template_form_cc_bcc.png +.. |res_company_form_default_cc_bcc| image:: https://raw.githubusercontent.com/OCA/social/18.0/mail_composer_cc_bcc/static/img/res_company_form_default_cc_bcc.png +.. |email_template_form_cc_bcc| image:: https://raw.githubusercontent.com/OCA/social/18.0/mail_composer_cc_bcc/static/img/email_template_form_cc_bcc.png Usage ===== @@ -85,8 +85,8 @@ corresponding mail composer's fields. |image1| -.. |image| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_composer_cc_bcc/static/img/mail_compose_message_default_cc_bcc.png -.. |image1| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_composer_cc_bcc/static/img/mail_compose_message_template_cc_bcc.png +.. |image| image:: https://raw.githubusercontent.com/OCA/social/18.0/mail_composer_cc_bcc/static/img/mail_compose_message_default_cc_bcc.png +.. |image1| image:: https://raw.githubusercontent.com/OCA/social/18.0/mail_composer_cc_bcc/static/img/mail_compose_message_template_cc_bcc.png Bug Tracker =========== @@ -94,7 +94,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -142,6 +142,6 @@ Current `maintainer `__: |maintainer-trisdoan| -This module is part of the `OCA/social `_ project on GitHub. +This module is part of the `OCA/social `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_composer_cc_bcc/models/mail_template.py b/mail_composer_cc_bcc/models/mail_template.py index 9540d3a1..5ac5c76e 100644 --- a/mail_composer_cc_bcc/models/mail_template.py +++ b/mail_composer_cc_bcc/models/mail_template.py @@ -44,9 +44,9 @@ def _generate_template_recipients( # noqa:C901 }: generated_field_values = self._render_field(field, res_ids) for res_id in res_ids: - render_results.setdefault(res_id, {})[ - field - ] = generated_field_values[res_id] + render_results.setdefault(res_id, {})[field] = ( + generated_field_values[res_id] + ) # create partners from emails if asked to if find_or_create_partners: diff --git a/mail_composer_cc_bcc/static/description/index.html b/mail_composer_cc_bcc/static/description/index.html index 3060e82a..7bc2b1c4 100644 --- a/mail_composer_cc_bcc/static/description/index.html +++ b/mail_composer_cc_bcc/static/description/index.html @@ -369,7 +369,7 @@

Email CC and BCC

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:74b49ed221c9dcabf5962c9efa43cc1b8dff0b08074da5a2ec9b685adbb5868f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Alpha License: AGPL-3 OCA/social Translate me on Weblate Try me on Runboat

+

Alpha License: AGPL-3 OCA/social Translate me on Weblate Try me on Runboat

Odoo native does not support defining a Cc field in the Mail Composer by default; instead, it only has a unique Recipients fields, which is confusing for a lot of end users.

@@ -405,29 +405,29 @@

Features

Configuration

In company form there are two fields to set default cc and bcc partners.

-res_company_form_default_cc_bcc
+res_company_form_default_cc_bcc

In template form there are two fields to set cc and bcc emails.

-email_template_form_cc_bcc
+email_template_form_cc_bcc

Usage

The partners cc and bcc from company form will be used to fill in mail composer form.

-image
+image

When select a template that has cc and/or bcc emails, the emails will be used to lookup partners then found partners will be added to corresponding mail composer’s fields.

-image1
+image1

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -470,7 +470,7 @@

Maintainers

promote its widespread use.

Current maintainer:

trisdoan

-

This module is part of the OCA/social project on GitHub.

+

This module is part of the OCA/social project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.