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

[17.0][MIG] mail_contact_type #1568

Open
wants to merge 9 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
104 changes: 104 additions & 0 deletions mail_contact_type/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
=================
Mail Contact Type
=================

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

.. |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%2Fsocial-lightgray.png?logo=github
:target: https://github.com/OCA/social/tree/17.0/mail_contact_type
: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_contact_type
: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
:alt: Try me on Runboat

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

Provides a method to use on mail templates to select contacts by their
categories.

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

Usage
=====

In the **Contacts > Configuration > Mailing > Contact type** you can
create mail contact type.

A mail contact type is defined by a name that will be displayed in the
backoffice and a code that will be used to find contacts related to this
type.

Then, you will need to define the mailing types for contacts. To achieve
this there is a field called **Mail Contact Types** into the contact
form view.

Last, to select proper contacts from email template configuration, you
will set the **To (partner)** field using jinja template like this
(assuming object as a field partner_id):
${object.partner_id.contact_by_types('your_code1','your_code2')}

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/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/social/issues/new?body=module:%20mail_contact_type%0Aversion:%2017.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
-------

* Foodles

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-petrus-v| image:: https://github.com/petrus-v.png?size=40px
:target: https://github.com/petrus-v
:alt: petrus-v

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

|maintainer-petrus-v|

This module is part of the `OCA/social <https://github.com/OCA/social/tree/17.0/mail_contact_type>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions mail_contact_type/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
29 changes: 29 additions & 0 deletions mail_contact_type/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2023 Foodles (https://www.foodles.com/)
# @author Pierre Verkest <[email protected]>
# @author Matthias Barkat <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Mail Contact Type",
"summary": "Mail Contact Type",
"version": "17.0.1.0.0",
"development_status": "Alpha",
"category": "Productivity/Discuss",
"website": "https://github.com/OCA/social",
"author": "Foodles, Odoo Community Association (OCA)",
"maintainers": ["petrus-v"],
"license": "AGPL-3",
"depends": [
"contacts",
"mail",
"base_view_inheritance_extension",
],
"data": [
"security/ir.model.access.csv",
"views/account_move_send_view.xml",
"views/mail_compose_message_view.xml",
"views/mail_contact_type.xml",
"views/res_partner.xml",
"views/menu.xml",
],
"installable": True,
}
112 changes: 112 additions & 0 deletions mail_contact_type/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_contact_type
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0+e\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__code
msgid "Code"
msgstr ""

#. module: mail_contact_type
#: model:ir.model,name:mail_contact_type.model_res_partner
msgid "Contact"
msgstr ""

#. module: mail_contact_type
#: model_terms:ir.ui.view,arch_db:mail_contact_type.view_mail_contact_type_form
msgid "Contact Type"
msgstr "Type de contact"

#. module: mail_contact_type
#: model:ir.actions.act_window,name:mail_contact_type.action_mail_contact_type
msgid "Contact Types"
msgstr "Types de contact"

#. module: mail_contact_type
#: model:ir.ui.menu,name:mail_contact_type.menu_contact_type_list
msgid "Contact types"
msgstr "Types de contact"

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__create_uid
msgid "Created by"
msgstr "Créé par"

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__create_date
msgid "Created on"
msgstr "Créé le"

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__display_name
#: model:ir.model.fields,field_description:mail_contact_type.field_res_partner__display_name
msgid "Display Name"
msgstr "Nom affiché"

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__id
#: model:ir.model.fields,field_description:mail_contact_type.field_res_partner__id
msgid "ID"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type____last_update
#: model:ir.model.fields,field_description:mail_contact_type.field_res_partner____last_update
msgid "Last Modified on"
msgstr "Dernière modification le"

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__write_uid
msgid "Last Updated by"
msgstr "Dernière mise à jour par"

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__write_date
msgid "Last Updated on"
msgstr "Derière mise à jour le"

#. module: mail_contact_type
#: model:ir.model,name:mail_contact_type.model_mail_contact_type
msgid "Mail Contact Type"
msgstr "Type de contact par mail"

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_res_partner__mail_contact_type_ids
#: model:ir.model.fields,field_description:mail_contact_type.field_res_users__mail_contact_type_ids
msgid "Mail Contact Types"
msgstr "Types de contact par mail"

#. module: mail_contact_type
#: model:ir.ui.menu,name:mail_contact_type.menu_contact_type
msgid "Mailing"
msgstr "Email"

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__name
msgid "Name"
msgstr "Nom"

#. module: mail_contact_type
#: model:ir.model.constraint,message:mail_contact_type.constraint_mail_contact_type_code_uniq
msgid "The code must be unique"
msgstr "Le code doit être unique"

#. module: mail_contact_type
#: model:ir.model.fields,help:mail_contact_type.field_res_partner__mail_contact_type_ids
#: model:ir.model.fields,help:mail_contact_type.field_res_users__mail_contact_type_ids
msgid "Used by email template to select contacts by mail contact type"
msgstr ""
"Utilisé par le modèle de courriel pour sélectionner les contacts par type de "
"contact par courriel"
110 changes: 110 additions & 0 deletions mail_contact_type/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_contact_type
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: it\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"

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__code
msgid "Code"
msgstr ""

#. module: mail_contact_type
#: model:ir.model,name:mail_contact_type.model_res_partner
msgid "Contact"
msgstr ""

#. module: mail_contact_type
#: model_terms:ir.ui.view,arch_db:mail_contact_type.view_mail_contact_type_form
msgid "Contact Type"
msgstr ""

#. module: mail_contact_type
#: model:ir.actions.act_window,name:mail_contact_type.action_mail_contact_type
msgid "Contact Types"
msgstr ""

#. module: mail_contact_type
#: model:ir.ui.menu,name:mail_contact_type.menu_contact_type_list
msgid "Contact types"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__create_uid
msgid "Created by"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__create_date
msgid "Created on"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__display_name
#: model:ir.model.fields,field_description:mail_contact_type.field_res_partner__display_name
msgid "Display Name"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__id
#: model:ir.model.fields,field_description:mail_contact_type.field_res_partner__id
msgid "ID"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type____last_update
#: model:ir.model.fields,field_description:mail_contact_type.field_res_partner____last_update
msgid "Last Modified on"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__write_uid
msgid "Last Updated by"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__write_date
msgid "Last Updated on"
msgstr ""

#. module: mail_contact_type
#: model:ir.model,name:mail_contact_type.model_mail_contact_type
msgid "Mail Contact Type"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_res_partner__mail_contact_type_ids
#: model:ir.model.fields,field_description:mail_contact_type.field_res_users__mail_contact_type_ids
msgid "Mail Contact Types"
msgstr ""

#. module: mail_contact_type
#: model:ir.ui.menu,name:mail_contact_type.menu_contact_type
msgid "Mailing"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.fields,field_description:mail_contact_type.field_mail_contact_type__name
msgid "Name"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.constraint,message:mail_contact_type.constraint_mail_contact_type_code_uniq
msgid "The code must be unique"
msgstr ""

#. module: mail_contact_type
#: model:ir.model.fields,help:mail_contact_type.field_res_partner__mail_contact_type_ids
#: model:ir.model.fields,help:mail_contact_type.field_res_users__mail_contact_type_ids
msgid "Used by email template to select contacts by mail contact type"
msgstr ""
Loading
Loading