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][UPG] viin_brand_mass_mailing: upgrade version 17.0 #511

Open
wants to merge 4 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
1 change: 1 addition & 0 deletions viin_brand_mass_mailing/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
4 changes: 3 additions & 1 deletion viin_brand_mass_mailing/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@
],
'demo': [
'data/mass_mailing_demo.xml',
'demo/mailing_trace_demo.xml'
],
'installable': False, # set auto_install True after upgrading for v17 after upgrading for v17
'installable': True,
'auto_install': True,
'price': 0.0,
'currency': 'EUR',
'license': 'OPL-1',
Expand Down
29 changes: 29 additions & 0 deletions viin_brand_mass_mailing/demo/mailing_trace_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<odoo>
<data noupdate="1">
<record id="mass_mailing.mass_mail_1_stat_0" model="mailing.trace">
<field name="message_id">[email protected]</field>
</record>
<record id="mass_mailing.mass_mail_1_stat_1" model="mailing.trace">
<field name="message_id">[email protected]</field>
</record>
<record id="mass_mailing.mass_mail_1_stat_2" model="mailing.trace">
<field name="message_id">[email protected]</field>
</record>
<record id="mass_mailing.mass_mail_1_stat_3" model="mailing.trace">
<field name="message_id">[email protected]</field>
</record>
<record id="mass_mailing.mass_mail_1_stat_4" model="mailing.trace">
<field name="message_id">[email protected]</field>
</record>
<record id="mass_mailing.mass_mail_1_stat_5" model="mailing.trace">
<field name="message_id">[email protected]</field>
</record>
<record id="mass_mailing.mass_mail_1_stat_6" model="mailing.trace">
<field name="message_id">[email protected]</field>
</record>
<record id="mass_mailing.mass_mail_1_stat_7" model="mailing.trace">
<field name="message_id">[email protected]</field>
</record>

</data>
</odoo>
54 changes: 40 additions & 14 deletions viin_brand_mass_mailing/i18n/vi_VN.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-13 04:49+0000\n"
"PO-Revision-Date: 2023-02-13 04:49+0000\n"
"POT-Creation-Date: 2024-07-19 09:46+0000\n"
"PO-Revision-Date: 2024-07-19 09:46+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand All @@ -18,12 +18,35 @@ msgstr ""
#. module: viin_brand_mass_mailing
#: model_terms:ir.ui.view,arch_db:viin_brand_mass_mailing.s_call_to_action
msgid "<span style=\"font-weight: bolder;\">50,000+ companies</span> run Viindoo."
msgstr "<span style=\"font-weight: bolder;\">Hơn 50.000 công ty</span> dùng Viindoo."
msgstr ""
"<span style=\"font-weight: bolder;\">Hơn 50.000 công ty</span> dùng Viindoo."

#. module: viin_brand_mass_mailing
#: model:ir.model,name:viin_brand_mass_mailing.model_res_config_settings
msgid "Config Settings"
msgstr "Cài đặt cấu hình"

#. module: viin_brand_mass_mailing
#: model:ir.model.fields,field_description:viin_brand_mass_mailing.field_res_config_settings__mass_mailing_outgoing_mail_server
msgid "Dedicated Server"
msgstr "Máy chủ riêng"

#. module: viin_brand_mass_mailing
#: model:ir.model.fields,field_description:viin_brand_mass_mailing.field_mailing_mailing__mail_server_id
msgid "Mail Server"
msgstr "Máy chủ thư"

#. module: viin_brand_mass_mailing
#: model:ir.model,name:viin_brand_mass_mailing.model_mailing_mailing
msgid "Mass Mailing"
msgstr "Gửi thư hàng loạt"

#. module: viin_brand_mass_mailing
#: model_terms:ir.ui.view,arch_db:viin_brand_mass_mailing.s_text_block
msgid "That way, Viindoo evolves much faster than any other solution."
msgstr "Bằng cách đó, Viindoo phát triển nhanh hơn nhiều so với bất kỳ giải pháp nào khác."
msgstr ""
"Bằng cách đó, Viindoo phát triển nhanh hơn nhiều so với bất kỳ giải pháp nào"
" khác."

#. module: viin_brand_mass_mailing
#: model_terms:ir.ui.view,arch_db:viin_brand_mass_mailing.s_text_image
Expand Down Expand Up @@ -53,16 +76,19 @@ msgid ""
msgstr ""
"Các cải tiến về khả năng sử dụng được thực hiện trên Viindoo sẽ tự động áp dụng cho tất cả\n"
" trong số các ứng dụng được tích hợp đầy đủ của chúng tôi."

#. module: viin_brand_mass_mailing
#: model:ir.model.fields,help:viin_brand_mass_mailing.field_mailing_mailing__mail_server_id
#: model:ir.model.fields,help:viin_brand_mass_mailing.field_res_config_settings__mass_mailing_outgoing_mail_server
#: model_terms:ir.ui.view,arch_db:viin_brand_mass_mailing.res_config_settings_view_form
msgid ""
"Use a specific mail server in priority. Otherwise System\n"
" relies on the first outgoing mail server available (based on their sequencing)\n"
" as it does for normal mails."
"Use a specific mail server in priority. Otherwise Viindoo relies on the "
"first outgoing mail server available (based on their sequencing) as it does "
"for normal mails."
msgstr ""
"Sử dụng một máy chủ gửi thư riêng. Nếu không, Hệ thống\n"
" sẽ sử dụng máy chủ gửi thư khả dụng đầu tiên (dựa trên trình tự của chúng)\n"
" như đối với các thư thông thường."
"Sử dụng một máy chủ gửi thư riêng. Nếu không, Viindoo sẽ dựa vào máy chủ gửi thư khả dụng "
"đầu tiên (dựa trên trình tự của chúng) như đối với các thư thông thường."

#. module: viin_brand_mass_mailing
#: model_terms:ir.ui.view,arch_db:viin_brand_mass_mailing.s_text_block
msgid ""
Expand All @@ -79,6 +105,6 @@ msgid ""
"provides <span style=\"font-weight: bolder;\">top notch usability that "
"scales across all apps</span>."
msgstr ""
"Với nền tảng kỹ thuật vững chắc, khung của Viindoo là duy nhất. Nó cung cấp"
"<span style=\"font-weight: bolder;\">khả năng sử dụng vượt trội mở rộng trên toàn bộ "
"tất cả ứng dụng</span>."
"Với nền tảng kỹ thuật vững chắc, khung của Viindoo là duy nhất. Nó cung "
"cấp<span style=\"font-weight: bolder;\">khả năng sử dụng vượt trội mở rộng "
"trên toàn bộ tất cả ứng dụng</span>."
34 changes: 28 additions & 6 deletions viin_brand_mass_mailing/i18n/viin_brand_mass_mailing.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-13 04:49+0000\n"
"PO-Revision-Date: 2023-02-13 04:49+0000\n"
"POT-Creation-Date: 2024-07-19 09:46+0000\n"
"PO-Revision-Date: 2024-07-19 09:46+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand All @@ -20,6 +20,26 @@ msgstr ""
msgid "<span style=\"font-weight: bolder;\">50,000+ companies</span> run Viindoo."
msgstr ""

#. module: viin_brand_mass_mailing
#: model:ir.model,name:viin_brand_mass_mailing.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: viin_brand_mass_mailing
#: model:ir.model.fields,field_description:viin_brand_mass_mailing.field_res_config_settings__mass_mailing_outgoing_mail_server
msgid "Dedicated Server"
msgstr ""

#. module: viin_brand_mass_mailing
#: model:ir.model.fields,field_description:viin_brand_mass_mailing.field_mailing_mailing__mail_server_id
msgid "Mail Server"
msgstr ""

#. module: viin_brand_mass_mailing
#: model:ir.model,name:viin_brand_mass_mailing.model_mailing_mailing
msgid "Mass Mailing"
msgstr ""

#. module: viin_brand_mass_mailing
#: model_terms:ir.ui.view,arch_db:viin_brand_mass_mailing.s_text_block
msgid "That way, Viindoo evolves much faster than any other solution."
Expand Down Expand Up @@ -49,11 +69,13 @@ msgid ""
msgstr ""

#. module: viin_brand_mass_mailing
#: model:ir.model.fields,help:viin_brand_mass_mailing.field_mailing_mailing__mail_server_id
#: model:ir.model.fields,help:viin_brand_mass_mailing.field_res_config_settings__mass_mailing_outgoing_mail_server
#: model_terms:ir.ui.view,arch_db:viin_brand_mass_mailing.res_config_settings_view_form
msgid ""
"Use a specific mail server in priority. Otherwise System\n"
" relies on the first outgoing mail server available (based on their sequencing)\n"
" as it does for normal mails."
"Use a specific mail server in priority. Otherwise Viindoo relies on the "
"first outgoing mail server available (based on their sequencing) as it does "
"for normal mails."
msgstr ""

#. module: viin_brand_mass_mailing
Expand Down
2 changes: 2 additions & 0 deletions viin_brand_mass_mailing/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import mailing
from . import res_config_settings
8 changes: 8 additions & 0 deletions viin_brand_mass_mailing/models/mailing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from odoo import fields, models


class MassMailing(models.Model):
_inherit = 'mailing.mailing'

# override
mail_server_id = fields.Many2one(help="Use a specific mail server in priority. Otherwise Viindoo relies on the first outgoing mail server available (based on their sequencing) as it does for normal mails.")
9 changes: 9 additions & 0 deletions viin_brand_mass_mailing/models/res_config_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from odoo import fields, models


class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'

mass_mailing_outgoing_mail_server = fields.Boolean(
help="Use a specific mail server in priority. Otherwise Viindoo relies on the first outgoing mail server available (based on their sequencing) as it does for normal mails."
)
6 changes: 2 additions & 4 deletions viin_brand_mass_mailing/views/res_config_settings_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="mass_mailing.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[@name='dedicated_server_setting_container']/div[hasclass('o_setting_left_pane')]"
<xpath expr="//setting[@name='dedicated_server_setting_container']"
position="attributes">
<attribute name="title">Use a specific mail server in priority. Otherwise System
relies on the first outgoing mail server available (based on their sequencing)
as it does for normal mails.</attribute>
<attribute name="title">Use a specific mail server in priority. Otherwise Viindoo relies on the first outgoing mail server available (based on their sequencing) as it does for normal mails.</attribute>
</xpath>
</field>
</record>
Expand Down