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..f846eea --- /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': 'Track Speakers SMS Marketing', + 'category': 'Hidden', + 'version': '1.0', + 'description': + """ +SMS Marketing on event track speakers +===================================== + +Bridge module adding UX requirements to ease SMS marketing on event track +speakers.. + """, + 'depends': [ + 'mass_mailing', + 'mass_mailing_sms', + 'sms', + 'website_event_track' + ], + 'auto_install': True, + 'license': 'LGPL-3', +} diff --git a/i18n/mass_mailing_event_track_sms.pot b/i18n/mass_mailing_event_track_sms.pot new file mode 100644 index 0000000..0ae4a2c --- /dev/null +++ b/i18n/mass_mailing_event_track_sms.pot @@ -0,0 +1,21 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mass_mailing_event_track_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_track_sms +#: model:ir.model,name:mass_mailing_event_track_sms.model_event_event +msgid "Event" +msgstr "" diff --git a/i18n/ru.po b/i18n/ru.po new file mode 100644 index 0000000..a243a30 --- /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_track_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_track_sms +#: model:ir.model,name:mass_mailing_event_track_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..cbfb15f --- /dev/null +++ b/models/event.py @@ -0,0 +1,14 @@ +# -*- 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_track_speakers(self): + # Minimal override: set form view being the one mixing sms and mail (not prioritized one) + action = super(Event, self).action_mass_mailing_track_speakers() + action['view_id'] = self.env.ref('mass_mailing_sms.mailing_mailing_view_form_mixed').id + return action