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

[18.0][MIG] mail_composer_cc_bcc: Migration to 18.0 #3

Open
wants to merge 30 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
ed23a70
[ADD] mail_composer_cc_bcc: send email to cc, bcc addresses
hailangvn May 23, 2023
5c37bd0
[FIX] avoid confusion of email's partners
hailangvn Jun 27, 2023
8a92200
[ADD] icon.png
OCA-git-bot Jul 18, 2023
6b8379a
[FIX]mail_composer_cc_bcc: avoid sending multiple mails to all recipi…
ChristophAbenthungCibex Aug 11, 2023
671b149
[FIX] mail_composer_cc_bcc: don't impact mass_mailing
nilshamerlinck Aug 29, 2023
77816a7
[FIX] mail_composer_cc_bcc: changes upstream
nilshamerlinck Sep 28, 2023
15f944a
[MIG] mail_composer_cc_bcc: Migrate to version 16.0
Sep 24, 2023
7a41168
[UPD] Update mail_composer_cc_bcc.pot
Oct 18, 2023
81c8f35
Added translation using Weblate (Spanish)
Ivorra78 Nov 8, 2023
010be72
Translated using Weblate (Spanish)
Ivorra78 Nov 8, 2023
6c78cf0
Translated using Weblate (Spanish)
Ivorra78 Nov 8, 2023
a610a3a
Added translation using Weblate (Italian)
mymage Dec 1, 2023
d86e993
Translated using Weblate (Italian)
mymage Dec 7, 2023
de47644
[FIX] mail_composer_cc_bcc: find invoice regardless of the current year
StefanRijnhart Jan 4, 2024
a3a6c79
[BOT] post-merge updates
OCA-git-bot Jan 4, 2024
f32d1ae
[IMP] mail_composer_cc_bcc: pre-commit
trisdoan Feb 19, 2024
c38f5a1
[MIG] mail_composer_cc_bcc: Migration to 17.0
trisdoan Feb 1, 2024
26346e6
mail_composer_cc_bcc: fix authorship
trisdoan Feb 2, 2024
4d7d103
[IMP] mail_composer_cc_bcc_account: pre-commit
trisdoan Feb 19, 2024
b7965b0
[MIG] mail_composer_cc_bcc_account: Migration to 17.0
trisdoan Feb 19, 2024
7186685
[UPD] Update mail_composer_cc_bcc.pot
Jul 22, 2024
cd4b58d
[BOT] post-merge updates
OCA-git-bot Jul 22, 2024
df5279a
Update translation files
weblate Jul 22, 2024
50a4bcb
Translated using Weblate (Italian)
mymage Jul 23, 2024
c892891
[FIX] mail_composer_cc_bcc: fix duplicate key value violates unique c…
BryanSomko Aug 7, 2024
695fa9a
[FIX] mail_composer_cc_bcc:send RFQ by email
trisdoan Oct 22, 2024
eb530e0
[FIX] mail_composer_cc_bcc: duplicate email
trisdoan Nov 5, 2024
1248127
[IMP] mail_composer_cc_bcc: pre-commit execution
trisdoan Nov 5, 2024
e0be57a
[MIG] mail_composer_cc_bcc: Migration to 18.0
trisdoan Nov 5, 2024
905eb25
[IMP] mail_composer_cc_bcc: refactor _generate_template_recipients
trisdoan Oct 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 147 additions & 0 deletions mail_composer_cc_bcc/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
================
Email CC and BCC
================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:74b49ed221c9dcabf5962c9efa43cc1b8dff0b08074da5a2ec9b685adbb5868f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github
:target: https://github.com/OCA/mail/tree/18.0/mail_composer_cc_bcc
:alt: OCA/mail
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/mail-18-0/mail-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/mail&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

This module allows to properly separate To:, Cc:, and Bcc: fields in the
Mail Composer.

From Odoo 17.0, this module sends one mail per recipient and keeps same
all headers (To, Cc, Bcc) in all emails

Features
--------

- Add Cc and Bcc fields to company form to use them as default in mail
composer form.
- Add Bcc field to mail template form. Use Cc and Bcc fields to lookup
partners by email then add them to corresponding fields in mail
composer form.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Configuration
=============

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

|res_company_form_default_cc_bcc|

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/mail/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/mail/18.0/mail_composer_cc_bcc/static/img/email_template_form_cc_bcc.png

Usage
=====

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

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

.. |image| image:: https://raw.githubusercontent.com/OCA/mail/18.0/mail_composer_cc_bcc/static/img/mail_compose_message_default_cc_bcc.png
.. |image1| image:: https://raw.githubusercontent.com/OCA/mail/18.0/mail_composer_cc_bcc/static/img/mail_compose_message_template_cc_bcc.png

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/mail/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 <https://github.com/OCA/mail/issues/new?body=module:%20mail_composer_cc_bcc%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Camptocamp

Contributors
------------

- `Trobz <https://www.trobz.com>`__:

- Hai N. Le <[email protected]>
- Son Ho <[email protected]>
- Tri Doan <[email protected]>

Other credits
-------------

The creation and migration of this module from 16.0 to 17.0, and then
17.0 to 18.0 were financially supported by Camptocamp.

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-trisdoan| image:: https://github.com/trisdoan.png?size=40px
:target: https://github.com/trisdoan
:alt: trisdoan

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-trisdoan|

This module is part of the `OCA/mail <https://github.com/OCA/mail/tree/18.0/mail_composer_cc_bcc>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions mail_composer_cc_bcc/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
27 changes: 27 additions & 0 deletions mail_composer_cc_bcc/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Email CC and BCC",
"summary": "This module enables sending mail to CC and BCC partners in mail composer form.", # noqa: E501
"version": "18.0.1.0.0",
"development_status": "Alpha",
"category": "Social",
"website": "https://github.com/OCA/mail",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainers": ["trisdoan"],
"license": "AGPL-3",
"application": False,
"installable": True,
"preloadable": True,
"depends": [
"mail",
],
"data": [
"views/res_company_views.xml",
"views/mail_mail_views.xml",
"views/mail_message_views.xml",
"views/mail_template_views.xml",
"wizards/mail_compose_message_view.xml",
"wizards/mail_template_preview_view.xml",
],
}
125 changes: 125 additions & 0 deletions mail_composer_cc_bcc/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_composer_cc_bcc
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-08 13:02+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: mail_composer_cc_bcc
#: model:ir.model.fields,field_description:mail_composer_cc_bcc.field_mail_compose_message__partner_bcc_ids
#: model:ir.model.fields,field_description:mail_composer_cc_bcc.field_mail_mail__email_bcc
#: model:ir.model.fields,field_description:mail_composer_cc_bcc.field_mail_template__email_bcc
msgid "Bcc"
msgstr "Bcc"

#. module: mail_composer_cc_bcc
#: model:ir.model.fields,field_description:mail_composer_cc_bcc.field_mail_mail__recipient_bcc_ids
#: model:ir.model.fields,field_description:mail_composer_cc_bcc.field_mail_message__recipient_bcc_ids
msgid "Bcc (Partners)"
msgstr "Bcc (Socios)"

#. module: mail_composer_cc_bcc
#: model:ir.model.fields,help:mail_composer_cc_bcc.field_mail_mail__email_bcc
msgid "Blind Cc message recipients"
msgstr "Destinatarios de mensajes Cc ciegos"

#. module: mail_composer_cc_bcc
#: model:ir.model.fields,help:mail_composer_cc_bcc.field_mail_template__email_bcc
msgid "Blind cc recipients (placeholders may be used here)"
msgstr "Destinatarios cc ciegos (pueden utilizarse marcadores de posición)"

#. module: mail_composer_cc_bcc
#: model:ir.model.fields,field_description:mail_composer_cc_bcc.field_mail_compose_message__partner_cc_ids
msgid "Cc"
msgstr "Con copia (cc)"

#. module: mail_composer_cc_bcc
#: model:ir.model.fields,field_description:mail_composer_cc_bcc.field_mail_mail__recipient_cc_ids
#: model:ir.model.fields,field_description:mail_composer_cc_bcc.field_mail_message__recipient_cc_ids
msgid "Cc (Partners)"
msgstr "Cc (Socios)"

#. module: mail_composer_cc_bcc
#: model_terms:ir.ui.view,arch_db:mail_composer_cc_bcc.email_template_form_inherit
#: model_terms:ir.ui.view,arch_db:mail_composer_cc_bcc.view_mail_form_inherit
msgid "Comma-separated blind carbon copy recipients addresses"
msgstr ""
"Direcciones de los destinatarios de la copia oculta separadas por comas"

#. module: mail_composer_cc_bcc
#: model:ir.model,name:mail_composer_cc_bcc.model_res_company
msgid "Companies"
msgstr "Compañías"

#. module: mail_composer_cc_bcc
#: model:ir.model.fields,field_description:mail_composer_cc_bcc.field_res_company__default_partner_bcc_ids
msgid "Default Bcc"
msgstr "Bcc por defecto"

#. module: mail_composer_cc_bcc
#: model:ir.model.fields,field_description:mail_composer_cc_bcc.field_res_company__default_partner_cc_ids
msgid "Default Cc"
msgstr "Cc por defecto"

#. module: mail_composer_cc_bcc
#: model:ir.model,name:mail_composer_cc_bcc.model_mail_template
msgid "Email Templates"
msgstr "Plantillas Correo Electrónico"

#. module: mail_composer_cc_bcc
#: model:ir.model,name:mail_composer_cc_bcc.model_mail_thread
msgid "Email Thread"
msgstr "Hilo de Correo Electrónico"

#. module: mail_composer_cc_bcc
#: model:ir.model,name:mail_composer_cc_bcc.model_mail_compose_message
msgid "Email composition wizard"
msgstr "Asistente de redacción de correo electrónico"

#. module: mail_composer_cc_bcc
#: model:ir.model,name:mail_composer_cc_bcc.model_ir_mail_server
msgid "Mail Server"
msgstr ""

#. module: mail_composer_cc_bcc
#: model:ir.model,name:mail_composer_cc_bcc.model_mail_message
msgid "Message"
msgstr "Mensaje"

#. module: mail_composer_cc_bcc
#: model:ir.model,name:mail_composer_cc_bcc.model_mail_mail
msgid "Outgoing Mails"
msgstr "Correos Salientes"

#. module: mail_composer_cc_bcc
#: model_terms:ir.ui.view,arch_db:mail_composer_cc_bcc.view_mail_form_inherit
msgid "Partners"
msgstr "Socios"

#, python-format
#~ msgid ""
#~ "Error without exception. Probably due do concurrent access update of "
#~ "notification records. Please see with an administrator."
#~ msgstr ""
#~ "Error sin excepción. Probablemente debido a la actualización de acceso "
#~ "concurrente de los registros de notificación. Por favor, consulte con un "
#~ "administrador."

#, python-format
#~ msgid ""
#~ "Error without exception. Probably due do sending an email without "
#~ "computed recipients."
#~ msgstr ""
#~ "Error sin excepción. Probablemente debido a enviar un email sin "
#~ "destinatarios computados."
Loading
Loading