From 00bd3c3cf061effc08455634ffe0e530b29c8980 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Wed, 19 Feb 2025 14:10:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=BE=D0=B5=20=D0=BD=D0=B0=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 4 ++++ __manifest__.py | 24 ++++++++++++++++++++++++ i18n/mass_mailing_event_sms.pot | 21 +++++++++++++++++++++ i18n/ru.po | 23 +++++++++++++++++++++++ models/__init__.py | 4 ++++ models/event.py | 20 ++++++++++++++++++++ 6 files changed, 96 insertions(+) create mode 100644 __init__.py create mode 100644 __manifest__.py create mode 100644 i18n/mass_mailing_event_sms.pot create mode 100644 i18n/ru.po create mode 100644 models/__init__.py create mode 100644 models/event.py diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..dc5e6b6 --- /dev/null +++ b/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import models diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..18bbb66 --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +{ + 'name': 'Event Attendees SMS Marketing', + 'category': 'Hidden', + 'version': '1.0', + 'description': + """ +SMS Marketing on event attendees +================================ + +Bridge module adding UX requirements to ease SMS marketing o, event attendees. + """, + 'depends': [ + 'event', + 'mass_mailing', + 'mass_mailing_event', + 'mass_mailing_sms', + 'sms', + ], + 'auto_install': True, + 'license': 'LGPL-3', +} diff --git a/i18n/mass_mailing_event_sms.pot b/i18n/mass_mailing_event_sms.pot new file mode 100644 index 0000000..4502c3c --- /dev/null +++ b/i18n/mass_mailing_event_sms.pot @@ -0,0 +1,21 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mass_mailing_event_sms +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-10-26 21:55+0000\n" +"PO-Revision-Date: 2023-10-26 21:55+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mass_mailing_event_sms +#: model:ir.model,name:mass_mailing_event_sms.model_event_event +msgid "Event" +msgstr "" diff --git a/i18n/ru.po b/i18n/ru.po new file mode 100644 index 0000000..b11ff8a --- /dev/null +++ b/i18n/ru.po @@ -0,0 +1,23 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mass_mailing_event_sms +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-10-26 21:55+0000\n" +"PO-Revision-Date: 2024-01-30 15:14+0400\n" +"Last-Translator: \n" +"Language-Team: Russian (https://app.transifex.com/odoo/teams/41243/ru/)\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" + +#. module: mass_mailing_event_sms +#: model:ir.model,name:mass_mailing_event_sms.model_event_event +msgid "Event" +msgstr "Событие" diff --git a/models/__init__.py b/models/__init__.py new file mode 100644 index 0000000..8086202 --- /dev/null +++ b/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import event diff --git a/models/event.py b/models/event.py new file mode 100644 index 0000000..eb4a27b --- /dev/null +++ b/models/event.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models + + +class Event(models.Model): + _inherit = "event.event" + + def action_mass_mailing_attendees(self): + # Minimal override: set form view being the one mixing sms and mail (not prioritized one) + action = super(Event, self).action_mass_mailing_attendees() + action['view_id'] = self.env.ref('mass_mailing_sms.mailing_mailing_view_form_mixed').id + return action + + def action_invite_contacts(self): + # Minimal override: set form view being the one mixing sms and mail (not prioritized one) + action = super(Event, self).action_invite_contacts() + action['view_id'] = self.env.ref('mass_mailing_sms.mailing_mailing_view_form_mixed').id + return action