mirror of https://github.com/OCA/social.git
[MIG] mass_mailing_partner: Migration to 16.0
parent
a6a0535a86
commit
d1e1e29afe
|
@ -14,14 +14,14 @@ Link partners with mass-mailing
|
|||
: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/15.0/mass_mailing_partner
|
||||
:target: https://github.com/OCA/social/tree/16.0/mass_mailing_partner
|
||||
:alt: OCA/social
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mass_mailing_partner
|
||||
:target: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mass_mailing_partner
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/205/15.0
|
||||
:alt: Try me on Runbot
|
||||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
||||
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/social&target_branch=16.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
|
@ -61,7 +61,7 @@ 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 smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mass_mailing_partner%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mass_mailing_partner%0Aversion:%2016.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.
|
||||
|
||||
|
@ -91,6 +91,15 @@ Contributors
|
|||
|
||||
* `Hibou Corp. <https://hibou.io>`_
|
||||
|
||||
* `Trobz <https://trobz.com>`_:
|
||||
|
||||
* Nguyễn Minh Chiến <chien@trobz.com>
|
||||
|
||||
Other credits
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
|
||||
|
@ -104,6 +113,6 @@ 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.
|
||||
|
||||
This module is part of the `OCA/social <https://github.com/OCA/social/tree/15.0/mass_mailing_partner>`_ project on GitHub.
|
||||
This module is part of the `OCA/social <https://github.com/OCA/social/tree/16.0/mass_mailing_partner>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
{
|
||||
"name": "Link partners with mass-mailing",
|
||||
"version": "15.0.1.0.0",
|
||||
"version": "16.0.1.0.0",
|
||||
"author": "Tecnativa, " "Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/social",
|
||||
"license": "AGPL-3",
|
||||
|
|
|
@ -1,65 +1,65 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mass_mailing_partner
|
||||
# * mass_mailing_partner
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-12-01 02:19+0000\n"
|
||||
"PO-Revision-Date: 2017-12-01 02:19+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
|
||||
"Language-Team: Vietnamese (https://www.transifex.com/oca/teams/23907/vi/)\n"
|
||||
"POT-Creation-Date: 2023-03-02 10:31+0000\n"
|
||||
"PO-Revision-Date: 2023-03-24 15:11+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: vi\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: \n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#. odoo-python
|
||||
#: code:addons/mass_mailing_partner/models/mailing_contact_subscription.py:0
|
||||
#: code:addons/mass_mailing_partner/models/mailing_list.py:0
|
||||
#, python-format
|
||||
msgid "A partner cannot be multiple times in the same list"
|
||||
msgstr ""
|
||||
msgstr "Một đối tác không thể xuất hiện nhiều lần trong một Danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.partner_mail_list_wizard_form
|
||||
msgid "Add contacts to mailing list"
|
||||
msgstr ""
|
||||
msgstr "Thêm liên hệ vào danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.actions.act_window,name:mass_mailing_partner.action_partner_mail_list
|
||||
msgid "Add to mailing list"
|
||||
msgstr ""
|
||||
msgstr "Thêm vào danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.partner_mail_list_wizard_form
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
msgstr "Hủy"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_res_partner
|
||||
msgid "Contact"
|
||||
msgstr ""
|
||||
msgstr "Liên hệ"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_partner_mail_list_wizard
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.partner_mail_list_wizard_form
|
||||
msgid "Create contact mailing list"
|
||||
msgstr ""
|
||||
msgstr "Thêm vào danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Được tạo bởi"
|
||||
msgstr "Tạo bởi"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Được tạo vào"
|
||||
msgstr "Tạo vào"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__display_name
|
||||
|
@ -69,7 +69,7 @@ msgstr "Tên hiển thị"
|
|||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard____last_update
|
||||
|
@ -79,7 +79,7 @@ msgstr "Sửa lần cuối vào"
|
|||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Last Updated by"
|
||||
msgstr "Cập nhật lần cuối bởi"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__write_date
|
||||
|
@ -89,60 +89,60 @@ msgstr "Cập nhật lần cuối vào"
|
|||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_mailing_contact
|
||||
msgid "Mailing Contact"
|
||||
msgstr ""
|
||||
msgstr "Liên hệ của danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_mailing_list
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__mail_list_id
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.view_res_partner_filter
|
||||
msgid "Mailing List"
|
||||
msgstr ""
|
||||
msgstr "Danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_mailing_trace
|
||||
msgid "Mailing Statistics"
|
||||
msgstr ""
|
||||
msgstr "Thống kê Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_partner__mass_mailing_contact_ids
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_users__mass_mailing_contact_ids
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.view_partner_form
|
||||
msgid "Mailing contacts"
|
||||
msgstr ""
|
||||
msgstr "Liên hệ của ds mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_partner__mass_mailing_contacts_count
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_users__mass_mailing_contacts_count
|
||||
msgid "Mailing contacts number"
|
||||
msgstr ""
|
||||
msgstr "SL liên hệ của ds Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_mailing_list__partner_mandatory
|
||||
msgid "Mandatory Partner"
|
||||
msgstr ""
|
||||
msgstr "Bắt buộc có đối tác"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_mailing_contact_subscription
|
||||
msgid "Mass Mailing Subscription Information"
|
||||
msgstr ""
|
||||
msgstr "Thông tin đăng ký gửi thư hàng loạt"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_partner__mass_mailing_stats_ids
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_users__mass_mailing_stats_ids
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.view_partner_form
|
||||
msgid "Mass mailing stats"
|
||||
msgstr ""
|
||||
msgstr "Thống kê ds Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_partner__mass_mailing_stats_count
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_users__mass_mailing_stats_count
|
||||
msgid "Mass mailing stats number"
|
||||
msgstr ""
|
||||
msgstr "SL thống kê ds Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_base_partner_merge_automatic_wizard
|
||||
msgid "Merge Partner Wizard"
|
||||
msgstr ""
|
||||
msgstr "Tính năng gộp đối tác"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_mailing_contact__partner_id
|
||||
|
@ -154,26 +154,31 @@ msgid "Partner"
|
|||
msgstr "Đối tác"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#. odoo-python
|
||||
#: code:addons/mass_mailing_partner/wizard/partner_mail_list_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Partner '%s' has no email."
|
||||
msgstr ""
|
||||
msgstr "Đối tác '%s' chưa có email."
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_mailing_list__partner_category
|
||||
msgid "Partner Tag"
|
||||
msgstr ""
|
||||
msgstr "Thẻ của đối tác"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#. odoo-python
|
||||
#: code:addons/mass_mailing_partner/models/mailing_contact.py:0
|
||||
#, python-format
|
||||
msgid "Partner already exists in one of these mailing lists"
|
||||
msgstr ""
|
||||
msgstr "Đối tác đã tồn tại trong một danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#. odoo-python
|
||||
#: code:addons/mass_mailing_partner/models/res_partner.py:0
|
||||
#, python-format
|
||||
msgid ""
|
||||
"This partner '%s' is linked to one or more mass mailing contact. Email must "
|
||||
"be assigned."
|
||||
msgstr ""
|
||||
"Đối tác '%s' có liên kết đến một liên hệ của danh sách Mail. Email là thông "
|
||||
"tin bắt buộc."
|
||||
|
|
|
@ -1,56 +1,55 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mass_mailing_partner
|
||||
# * mass_mailing_partner
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-12-01 02:19+0000\n"
|
||||
"PO-Revision-Date: 2017-12-01 02:19+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
|
||||
"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/"
|
||||
"teams/23907/vi_VN/)\n"
|
||||
"POT-Creation-Date: 2023-03-02 10:31+0000\n"
|
||||
"PO-Revision-Date: 2023-03-24 15:11+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: vi_VN\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: \n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#. odoo-python
|
||||
#: code:addons/mass_mailing_partner/models/mailing_contact_subscription.py:0
|
||||
#: code:addons/mass_mailing_partner/models/mailing_list.py:0
|
||||
#, python-format
|
||||
msgid "A partner cannot be multiple times in the same list"
|
||||
msgstr ""
|
||||
msgstr "Một đối tác không thể xuất hiện nhiều lần trong một Danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.partner_mail_list_wizard_form
|
||||
msgid "Add contacts to mailing list"
|
||||
msgstr ""
|
||||
msgstr "Thêm liên hệ vào danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.actions.act_window,name:mass_mailing_partner.action_partner_mail_list
|
||||
msgid "Add to mailing list"
|
||||
msgstr ""
|
||||
msgstr "Thêm vào danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.partner_mail_list_wizard_form
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
msgstr "Hủy"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_res_partner
|
||||
msgid "Contact"
|
||||
msgstr ""
|
||||
msgstr "Liên hệ"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_partner_mail_list_wizard
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.partner_mail_list_wizard_form
|
||||
msgid "Create contact mailing list"
|
||||
msgstr ""
|
||||
msgstr "Thêm vào danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__create_uid
|
||||
|
@ -65,17 +64,17 @@ msgstr "Tạo vào"
|
|||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
msgstr "Tên hiển thị"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
msgstr "Sửa lần cuối vào"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__write_uid
|
||||
|
@ -90,60 +89,60 @@ msgstr "Cập nhật lần cuối vào"
|
|||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_mailing_contact
|
||||
msgid "Mailing Contact"
|
||||
msgstr ""
|
||||
msgstr "Liên hệ của danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_mailing_list
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_partner_mail_list_wizard__mail_list_id
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.view_res_partner_filter
|
||||
msgid "Mailing List"
|
||||
msgstr ""
|
||||
msgstr "Danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_mailing_trace
|
||||
msgid "Mailing Statistics"
|
||||
msgstr ""
|
||||
msgstr "Thống kê Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_partner__mass_mailing_contact_ids
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_users__mass_mailing_contact_ids
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.view_partner_form
|
||||
msgid "Mailing contacts"
|
||||
msgstr ""
|
||||
msgstr "Liên hệ của ds mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_partner__mass_mailing_contacts_count
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_users__mass_mailing_contacts_count
|
||||
msgid "Mailing contacts number"
|
||||
msgstr ""
|
||||
msgstr "SL liên hệ của ds Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_mailing_list__partner_mandatory
|
||||
msgid "Mandatory Partner"
|
||||
msgstr ""
|
||||
msgstr "Bắt buộc có đối tác"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_mailing_contact_subscription
|
||||
msgid "Mass Mailing Subscription Information"
|
||||
msgstr ""
|
||||
msgstr "Thông tin đăng ký gửi thư hàng loạt"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_partner__mass_mailing_stats_ids
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_users__mass_mailing_stats_ids
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.view_partner_form
|
||||
msgid "Mass mailing stats"
|
||||
msgstr ""
|
||||
msgstr "Thống kê ds Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_partner__mass_mailing_stats_count
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_res_users__mass_mailing_stats_count
|
||||
msgid "Mass mailing stats number"
|
||||
msgstr ""
|
||||
msgstr "SL thống kê ds Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model,name:mass_mailing_partner.model_base_partner_merge_automatic_wizard
|
||||
msgid "Merge Partner Wizard"
|
||||
msgstr ""
|
||||
msgstr "Tính năng gộp đối tác"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_mailing_contact__partner_id
|
||||
|
@ -152,29 +151,34 @@ msgstr ""
|
|||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.mailing_trace_view_search
|
||||
#: model_terms:ir.ui.view,arch_db:mass_mailing_partner.view_mail_mass_mailing_contact_search
|
||||
msgid "Partner"
|
||||
msgstr ""
|
||||
msgstr "Đối tác"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#. odoo-python
|
||||
#: code:addons/mass_mailing_partner/wizard/partner_mail_list_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Partner '%s' has no email."
|
||||
msgstr ""
|
||||
msgstr "Đối tác '%s' chưa có email."
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#: model:ir.model.fields,field_description:mass_mailing_partner.field_mailing_list__partner_category
|
||||
msgid "Partner Tag"
|
||||
msgstr ""
|
||||
msgstr "Thẻ của đối tác"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#. odoo-python
|
||||
#: code:addons/mass_mailing_partner/models/mailing_contact.py:0
|
||||
#, python-format
|
||||
msgid "Partner already exists in one of these mailing lists"
|
||||
msgstr ""
|
||||
msgstr "Đối tác đã tồn tại trong một danh sách Mail"
|
||||
|
||||
#. module: mass_mailing_partner
|
||||
#. odoo-python
|
||||
#: code:addons/mass_mailing_partner/models/res_partner.py:0
|
||||
#, python-format
|
||||
msgid ""
|
||||
"This partner '%s' is linked to one or more mass mailing contact. Email must "
|
||||
"be assigned."
|
||||
msgstr ""
|
||||
"Đối tác '%s' có liên kết đến một liên hệ của danh sách Mail. Email là thông "
|
||||
"tin bắt buộc."
|
||||
|
|
|
@ -16,6 +16,15 @@ class MailingContact(models.Model):
|
|||
partner_id = fields.Many2one(
|
||||
comodel_name="res.partner", string="Partner", domain=[("email", "!=", False)]
|
||||
)
|
||||
tag_ids = fields.Many2many(compute="_compute_tag_ids", store=True)
|
||||
|
||||
@api.depends("partner_id", "partner_id.category_id")
|
||||
def _compute_tag_ids(self):
|
||||
for rec in self:
|
||||
tags = rec.tag_ids
|
||||
if rec.partner_id.category_id:
|
||||
tags = rec.partner_id.category_id
|
||||
rec.tag_ids = tags
|
||||
|
||||
@api.constrains("partner_id", "list_ids")
|
||||
def _check_partner_id_list_ids(self):
|
||||
|
@ -39,42 +48,49 @@ class MailingContact(models.Model):
|
|||
self.name = self.partner_id.name
|
||||
self.email = self.partner_id.email
|
||||
self.title_id = self.partner_id.title
|
||||
self.company_name = self.partner_id.company_id.name
|
||||
self.company_name = (
|
||||
self.partner_id.company_id.name or self.partner_id.company_name
|
||||
)
|
||||
self.country_id = self.partner_id.country_id
|
||||
category_ids = self.partner_id.category_id
|
||||
if category_ids:
|
||||
self.tag_ids = category_ids
|
||||
|
||||
@api.model
|
||||
def create(self, vals):
|
||||
record = self.new(vals)
|
||||
def _get_contact_vals(self, origin_vals):
|
||||
record = self.new(origin_vals)
|
||||
if not record.partner_id:
|
||||
record._set_partner()
|
||||
record._onchange_partner_mass_mailing_partner()
|
||||
new_vals = record._convert_to_write(record._cache)
|
||||
new_vals.update(
|
||||
subscription_list_ids=vals.get("subscription_list_ids", []),
|
||||
list_ids=vals.get("list_ids", []),
|
||||
subscription_list_ids=origin_vals.get("subscription_list_ids", []),
|
||||
list_ids=origin_vals.get("list_ids", []),
|
||||
)
|
||||
return super().create(new_vals)
|
||||
if new_vals.get("partner_id") and "tag_ids" in new_vals:
|
||||
# When there is a partner, tag_ids must get value from the compute function
|
||||
# otherwise, its values will be different from partner
|
||||
del new_vals["tag_ids"]
|
||||
return new_vals
|
||||
|
||||
@api.model_create_multi
|
||||
def create(self, vals_list):
|
||||
new_vals_list = []
|
||||
for vals in vals_list:
|
||||
new_vals = self._get_contact_vals(vals)
|
||||
new_vals_list.append(new_vals)
|
||||
return super().create(new_vals_list)
|
||||
|
||||
def write(self, vals):
|
||||
for contact in self:
|
||||
new_vals = contact.copy_data(vals)[0]
|
||||
record = self.new(new_vals)
|
||||
if not record.partner_id:
|
||||
record._set_partner()
|
||||
record._onchange_partner_mass_mailing_partner()
|
||||
new_vals = record._convert_to_write(record._cache)
|
||||
new_vals.update(
|
||||
subscription_list_ids=vals.get("subscription_list_ids", []),
|
||||
list_ids=vals.get("list_ids", []),
|
||||
)
|
||||
origin_vals = contact.copy_data(vals)[0]
|
||||
new_vals = self._get_contact_vals(origin_vals)
|
||||
super(MailingContact, contact).write(new_vals)
|
||||
return True
|
||||
|
||||
def _get_categories(self):
|
||||
ca_ids = self.tag_ids.ids + self.list_ids.mapped("partner_category.id")
|
||||
ca_ids = (
|
||||
self.tag_ids.ids
|
||||
+ self.list_ids.mapped("partner_category.id")
|
||||
+ self.subscription_list_ids.mapped("list_id.partner_category.id")
|
||||
)
|
||||
return [[6, 0, ca_ids]]
|
||||
|
||||
def _prepare_partner(self):
|
||||
|
|
|
@ -30,8 +30,8 @@ class MailingTrace(models.Model):
|
|||
stat.partner_id = partner_id
|
||||
return True
|
||||
|
||||
@api.model
|
||||
def create(self, vals):
|
||||
stat = super().create(vals)
|
||||
@api.model_create_multi
|
||||
def create(self, vals_list):
|
||||
stat = super().create(vals_list)
|
||||
stat.partner_link()
|
||||
return stat
|
||||
|
|
|
@ -84,8 +84,6 @@ class ResPartner(models.Model):
|
|||
mm_vals["company_name"] = company.name
|
||||
if vals.get("country_id"):
|
||||
mm_vals["country_id"] = vals["country_id"]
|
||||
if vals.get("category_id"):
|
||||
mm_vals["tag_ids"] = vals["category_id"]
|
||||
if mm_vals:
|
||||
# Using sudo because ACLs shouldn't produce data inconsistency
|
||||
self.env["mailing.contact"].sudo().search(
|
||||
|
|
|
@ -12,3 +12,7 @@
|
|||
* Víctor Martínez
|
||||
|
||||
* `Hibou Corp. <https://hibou.io>`_
|
||||
|
||||
* `Trobz <https://trobz.com>`_:
|
||||
|
||||
* Nguyễn Minh Chiến <chien@trobz.com>
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp
|
|
@ -3,7 +3,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
|
||||
<title>Link partners with mass-mailing</title>
|
||||
<style type="text/css">
|
||||
|
||||
|
@ -367,7 +367,7 @@ ul.auto-toc {
|
|||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/social/tree/15.0/mass_mailing_partner"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/social-15-0/social-15-0-mass_mailing_partner"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/205/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/social/tree/16.0/mass_mailing_partner"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/social-16-0/social-16-0-mass_mailing_partner"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runboat.odoo-community.org/webui/builds.html?repo=OCA/social&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module links mass-mailing contacts with partners.</p>
|
||||
<div class="section" id="features">
|
||||
<h1>Features</h1>
|
||||
|
@ -404,7 +404,7 @@ as mailing list contacts.</p>
|
|||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mass_mailing_partner%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mass_mailing_partner%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
|
@ -438,7 +438,18 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||
</li>
|
||||
<li><p class="first"><a class="reference external" href="https://hibou.io">Hibou Corp.</a></p>
|
||||
</li>
|
||||
<li><p class="first"><a class="reference external" href="https://trobz.com">Trobz</a>:</p>
|
||||
<blockquote>
|
||||
<ul class="simple">
|
||||
<li>Nguyễn Minh Chiến <<a class="reference external" href="mailto:chien@trobz.com">chien@trobz.com</a>></li>
|
||||
</ul>
|
||||
</blockquote>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="other-credits">
|
||||
<h1>Other credits</h1>
|
||||
<p>The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp</p>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h1>Maintainers</h1>
|
||||
|
@ -447,7 +458,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||
<p>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.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/15.0/mass_mailing_partner">OCA/social</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/16.0/mass_mailing_partner">OCA/social</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -11,19 +11,16 @@
|
|||
<field name="name">Partner Form with mailing contacts</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form" />
|
||||
<field
|
||||
name="groups_id"
|
||||
eval="[(4, ref('mass_mailing.group_mass_mailing_user'))]"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<button
|
||||
name="%(mass_mailing.action_view_mass_mailing_contacts)d"
|
||||
context="{'search_default_partner_id': active_id,
|
||||
'default_partner_id': active_id}"
|
||||
context="{'search_default_partner_id': id,
|
||||
'default_partner_id': id}"
|
||||
type="action"
|
||||
class="oe_stat_button oe_inline"
|
||||
icon="fa-envelope-o"
|
||||
groups="mass_mailing.group_mass_mailing_user"
|
||||
>
|
||||
<field
|
||||
name="mass_mailing_contacts_count"
|
||||
|
@ -33,11 +30,12 @@
|
|||
</button>
|
||||
<button
|
||||
name="%(mass_mailing.mailing_trace_action)d"
|
||||
context="{'search_default_partner_id': active_id,
|
||||
'default_partner_id': active_id}"
|
||||
context="{'search_default_partner_id': id,
|
||||
'default_partner_id': id}"
|
||||
type="action"
|
||||
class="oe_stat_button oe_inline"
|
||||
icon="fa-envelope-o"
|
||||
groups="mass_mailing.group_mass_mailing_user"
|
||||
>
|
||||
<field
|
||||
name="mass_mailing_stats_count"
|
||||
|
@ -53,10 +51,6 @@
|
|||
<field name="name">Partner Search with mailing contacts</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_res_partner_filter" />
|
||||
<field
|
||||
name="groups_id"
|
||||
eval="[(4, ref('mass_mailing.group_mass_mailing_user'))]"
|
||||
/>
|
||||
<field name="priority">20</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="category_id" position="after">
|
||||
|
@ -64,6 +58,7 @@
|
|||
name="mass_mailing_contact_ids"
|
||||
string="Mailing List"
|
||||
filter_domain="[('mass_mailing_contact_ids.list_ids','ilike', self)]"
|
||||
groups="mass_mailing.group_mass_mailing_user"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
|
|
|
@ -39,6 +39,5 @@ class PartnerMailListWizard(models.TransientModel):
|
|||
"title_id": partner.title or False,
|
||||
"company_name": partner.company_id.name or False,
|
||||
"country_id": partner.country_id or False,
|
||||
"tag_ids": partner.category_id or False,
|
||||
}
|
||||
contact_obj.create(contact_vals)
|
||||
|
|
Loading…
Reference in New Issue