From cfc626dbdee56fb7c079438c6582d105e61e9691 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Wed, 19 Feb 2025 14:07:52 +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 | 2 ++ __manifest__.py | 18 ++++++++++++ i18n/ar.po | 25 +++++++++++++++++ i18n/crm_sms.pot | 27 ++++++++++++++++++ i18n/cs.po | 25 +++++++++++++++++ i18n/da.po | 25 +++++++++++++++++ i18n/de.po | 32 ++++++++++++++++++++++ i18n/es.po | 32 ++++++++++++++++++++++ i18n/fr.po | 32 ++++++++++++++++++++++ i18n/he.po | 25 +++++++++++++++++ i18n/hr.po | 25 +++++++++++++++++ i18n/hu.po | 25 +++++++++++++++++ i18n/it.po | 32 ++++++++++++++++++++++ i18n/lb.po | 27 ++++++++++++++++++ i18n/lt.po | 25 +++++++++++++++++ i18n/mn.po | 25 +++++++++++++++++ i18n/nb.po | 25 +++++++++++++++++ i18n/nl.po | 32 ++++++++++++++++++++++ i18n/pl.po | 25 +++++++++++++++++ i18n/pt.po | 27 ++++++++++++++++++ i18n/pt_BR.po | 25 +++++++++++++++++ i18n/ro.po | 27 ++++++++++++++++++ i18n/ru.po | 29 ++++++++++++++++++++ i18n/tr.po | 25 +++++++++++++++++ i18n/uk.po | 31 +++++++++++++++++++++ i18n/vi.po | 25 +++++++++++++++++ i18n/zh_CN.po | 32 ++++++++++++++++++++++ i18n/zh_TW.po | 25 +++++++++++++++++ security/ir.model.access.csv | 2 ++ security/sms_security.xml | 10 +++++++ tests/__init__.py | 3 ++ tests/test_crm_lead.py | 29 ++++++++++++++++++++ views/crm_lead_views.xml | 53 ++++++++++++++++++++++++++++++++++++ 33 files changed, 827 insertions(+) create mode 100644 __init__.py create mode 100644 __manifest__.py create mode 100644 i18n/ar.po create mode 100644 i18n/crm_sms.pot create mode 100644 i18n/cs.po create mode 100644 i18n/da.po create mode 100644 i18n/de.po create mode 100644 i18n/es.po create mode 100644 i18n/fr.po create mode 100644 i18n/he.po create mode 100644 i18n/hr.po create mode 100644 i18n/hu.po create mode 100644 i18n/it.po create mode 100644 i18n/lb.po create mode 100644 i18n/lt.po create mode 100644 i18n/mn.po create mode 100644 i18n/nb.po create mode 100644 i18n/nl.po create mode 100644 i18n/pl.po create mode 100644 i18n/pt.po create mode 100644 i18n/pt_BR.po create mode 100644 i18n/ro.po create mode 100644 i18n/ru.po create mode 100644 i18n/tr.po create mode 100644 i18n/uk.po create mode 100644 i18n/vi.po create mode 100644 i18n/zh_CN.po create mode 100644 i18n/zh_TW.po create mode 100644 security/ir.model.access.csv create mode 100644 security/sms_security.xml create mode 100644 tests/__init__.py create mode 100644 tests/test_crm_lead.py create mode 100644 views/crm_lead_views.xml diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..67dee8c --- /dev/null +++ b/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..a7d1055 --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +{ + 'name': 'SMS in CRM', + 'version': '1.1', + 'category': 'Sales/CRM', + 'summary': 'Add SMS capabilities to CRM', + 'depends': ['crm', 'sms'], + 'data': [ + 'views/crm_lead_views.xml', + 'security/ir.model.access.csv', + 'security/sms_security.xml', + ], + 'installable': True, + 'auto_install': True, + 'license': 'LGPL-3', +} diff --git a/i18n/ar.po b/i18n/ar.po new file mode 100644 index 0000000..8fc7c37 --- /dev/null +++ b/i18n/ar.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Mustafa Rawi , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Mustafa Rawi , 2019\n" +"Language-Team: Arabic (https://www.transifex.com/odoo/teams/41243/ar/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ar\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "ترشيح/فرصة" diff --git a/i18n/crm_sms.pot b/i18n/crm_sms.pot new file mode 100644 index 0000000..8c3ba7e --- /dev/null +++ b/i18n/crm_sms.pot @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_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: crm_sms +#: model_terms:ir.ui.view,arch_db:crm_sms.crm_case_tree_view_oppor +msgid "SMS" +msgstr "" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "" diff --git a/i18n/cs.po b/i18n/cs.po new file mode 100644 index 0000000..f39cd65 --- /dev/null +++ b/i18n/cs.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# trendspotter , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: trendspotter , 2019\n" +"Language-Team: Czech (https://www.transifex.com/odoo/teams/41243/cs/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: cs\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "zájem / příležitost" diff --git a/i18n/da.po b/i18n/da.po new file mode 100644 index 0000000..057606b --- /dev/null +++ b/i18n/da.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Sanne Kristensen , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Sanne Kristensen , 2019\n" +"Language-Team: Danish (https://www.transifex.com/odoo/teams/41243/da/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: da\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Kundeemne/Salgsmulighed" diff --git a/i18n/de.po b/i18n/de.po new file mode 100644 index 0000000..615980e --- /dev/null +++ b/i18n/de.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Martin Trigaux, 2019 +# Leon Grill , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Leon Grill , 2019\n" +"Language-Team: German (https://www.transifex.com/odoo/teams/41243/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Interessent / Chance" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "SMS-Textnachricht senden" diff --git a/i18n/es.po b/i18n/es.po new file mode 100644 index 0000000..94c63b8 --- /dev/null +++ b/i18n/es.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Martin Trigaux, 2019 +# Juan Pablo Mora , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Juan Pablo Mora , 2019\n" +"Language-Team: Spanish (https://www.transifex.com/odoo/teams/41243/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Iniciativa/Oportunidad" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "Manda Mensaje de Texto SMS" diff --git a/i18n/fr.po b/i18n/fr.po new file mode 100644 index 0000000..d34a62e --- /dev/null +++ b/i18n/fr.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Martin Trigaux, 2019 +# Nicolas Roussey , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Nicolas Roussey , 2019\n" +"Language-Team: French (https://www.transifex.com/odoo/teams/41243/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Piste/opportunité" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "Envoyer un SMS" diff --git a/i18n/he.po b/i18n/he.po new file mode 100644 index 0000000..a55787d --- /dev/null +++ b/i18n/he.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Martin Trigaux, 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Martin Trigaux, 2019\n" +"Language-Team: Hebrew (https://www.transifex.com/odoo/teams/41243/he/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: he\n" +"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "ליד/הזדמנות" diff --git a/i18n/hr.po b/i18n/hr.po new file mode 100644 index 0000000..b1e6170 --- /dev/null +++ b/i18n/hr.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Stjepan Lovasić , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Stjepan Lovasić , 2019\n" +"Language-Team: Croatian (https://www.transifex.com/odoo/teams/41243/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Potencijal/prilika" diff --git a/i18n/hu.po b/i18n/hu.po new file mode 100644 index 0000000..9de565f --- /dev/null +++ b/i18n/hu.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Ákos Nagy , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Ákos Nagy , 2019\n" +"Language-Team: Hungarian (https://www.transifex.com/odoo/teams/41243/hu/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Érdeklődés/Lehetőség" diff --git a/i18n/it.po b/i18n/it.po new file mode 100644 index 0000000..33c6916 --- /dev/null +++ b/i18n/it.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Sergio Zanchetta , 2019 +# Luigia Cimmino Caserta , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Luigia Cimmino Caserta , 2019\n" +"Language-Team: Italian (https://www.transifex.com/odoo/teams/41243/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Contatto/Opportunità" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "Invia Messaggio SMS" diff --git a/i18n/lb.po b/i18n/lb.po new file mode 100644 index 0000000..3504ebc --- /dev/null +++ b/i18n/lb.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Language-Team: Luxembourgish (https://www.transifex.com/odoo/teams/41243/lb/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: lb\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "" diff --git a/i18n/lt.po b/i18n/lt.po new file mode 100644 index 0000000..e1681e0 --- /dev/null +++ b/i18n/lt.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Andrius Laukavičius , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Andrius Laukavičius , 2019\n" +"Language-Team: Lithuanian (https://www.transifex.com/odoo/teams/41243/lt/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: lt\n" +"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Iniciatyva/Galimybė" diff --git a/i18n/mn.po b/i18n/mn.po new file mode 100644 index 0000000..1ef254e --- /dev/null +++ b/i18n/mn.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Martin Trigaux, 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Martin Trigaux, 2019\n" +"Language-Team: Mongolian (https://www.transifex.com/odoo/teams/41243/mn/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: mn\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Сэжим/Боломж" diff --git a/i18n/nb.po b/i18n/nb.po new file mode 100644 index 0000000..43229dd --- /dev/null +++ b/i18n/nb.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Martin Trigaux, 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Martin Trigaux, 2019\n" +"Language-Team: Norwegian Bokmål (https://www.transifex.com/odoo/teams/41243/nb/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nb\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Lead/salgsmulighet" diff --git a/i18n/nl.po b/i18n/nl.po new file mode 100644 index 0000000..728f715 --- /dev/null +++ b/i18n/nl.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Martin Trigaux, 2019 +# Yenthe Van Ginneken , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Yenthe Van Ginneken , 2019\n" +"Language-Team: Dutch (https://www.transifex.com/odoo/teams/41243/nl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Lead/Prospect" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "Verstuur SMS tekstbericht" diff --git a/i18n/pl.po b/i18n/pl.po new file mode 100644 index 0000000..76a7723 --- /dev/null +++ b/i18n/pl.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Martin Trigaux, 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Martin Trigaux, 2019\n" +"Language-Team: Polish (https://www.transifex.com/odoo/teams/41243/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pl\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Sygnały/Szanse" diff --git a/i18n/pt.po b/i18n/pt.po new file mode 100644 index 0000000..6448d97 --- /dev/null +++ b/i18n/pt.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Language-Team: Portuguese (https://www.transifex.com/odoo/teams/41243/pt/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "" diff --git a/i18n/pt_BR.po b/i18n/pt_BR.po new file mode 100644 index 0000000..f8d4923 --- /dev/null +++ b/i18n/pt_BR.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Martin Trigaux, 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Martin Trigaux, 2019\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/odoo/teams/41243/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Prospecção/Oportunidade" diff --git a/i18n/ro.po b/i18n/ro.po new file mode 100644 index 0000000..98cbf13 --- /dev/null +++ b/i18n/ro.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Language-Team: Romanian (https://www.transifex.com/odoo/teams/41243/ro/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "" diff --git a/i18n/ru.po b/i18n/ru.po new file mode 100644 index 0000000..23113db --- /dev/null +++ b/i18n/ru.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_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: crm_sms +#: model_terms:ir.ui.view,arch_db:crm_sms.crm_case_tree_view_oppor +msgid "SMS" +msgstr "СМС" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "Отправить текстовое сообщение SMS" diff --git a/i18n/tr.po b/i18n/tr.po new file mode 100644 index 0000000..b00054e --- /dev/null +++ b/i18n/tr.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Murat Kaplan , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Murat Kaplan , 2019\n" +"Language-Team: Turkish (https://www.transifex.com/odoo/teams/41243/tr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Aday/Fırsat" diff --git a/i18n/uk.po b/i18n/uk.po new file mode 100644 index 0000000..e659d77 --- /dev/null +++ b/i18n/uk.po @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Alina Lisnenko , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Alina Lisnenko , 2019\n" +"Language-Team: Ukrainian (https://www.transifex.com/odoo/teams/41243/uk/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: uk\n" +"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Лід/Нагода" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "Надіслати SMS-повідомлення" diff --git a/i18n/vi.po b/i18n/vi.po new file mode 100644 index 0000000..a0144ea --- /dev/null +++ b/i18n/vi.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Duy BQ , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Duy BQ , 2019\n" +"Language-Team: Vietnamese (https://www.transifex.com/odoo/teams/41243/vi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: vi\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Tiềm năng/Cơ hội" diff --git a/i18n/zh_CN.po b/i18n/zh_CN.po new file mode 100644 index 0000000..d04e334 --- /dev/null +++ b/i18n/zh_CN.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Martin Trigaux, 2019 +# Jeanphy , 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Jeanphy , 2019\n" +"Language-Team: Chinese (China) (https://www.transifex.com/odoo/teams/41243/zh_CN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "线索/商机" + +#. module: crm_sms +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_multi +#: model:ir.actions.act_window,name:crm_sms.crm_lead_act_window_sms_composer_single +msgid "Send SMS Text Message" +msgstr "发送文本短信" diff --git a/i18n/zh_TW.po b/i18n/zh_TW.po new file mode 100644 index 0000000..94ca969 --- /dev/null +++ b/i18n/zh_TW.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_sms +# +# Translators: +# Martin Trigaux, 2019 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~12.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-26 08:16+0000\n" +"PO-Revision-Date: 2019-08-26 09:09+0000\n" +"Last-Translator: Martin Trigaux, 2019\n" +"Language-Team: Chinese (Taiwan) (https://www.transifex.com/odoo/teams/41243/zh_TW/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_TW\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: crm_sms +#: model:ir.model,name:crm_sms.model_crm_lead +msgid "Lead/Opportunity" +msgstr "線索/商機" diff --git a/security/ir.model.access.csv b/security/ir.model.access.csv new file mode 100644 index 0000000..f94b6f7 --- /dev/null +++ b/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_sms_template_sale_manager,access.sms.template.sale.manager,sms.model_sms_template,sales_team.group_sale_manager,1,1,1,1 diff --git a/security/sms_security.xml b/security/sms_security.xml new file mode 100644 index 0000000..b29ed06 --- /dev/null +++ b/security/sms_security.xml @@ -0,0 +1,10 @@ + + + + SMS Template: sale manager CUD on opportunity / partner templates + + + [('model_id.model', 'in', ('crm.lead', 'res.partner'))] + + + diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e6f8624 --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import test_crm_lead diff --git a/tests/test_crm_lead.py b/tests/test_crm_lead.py new file mode 100644 index 0000000..2ea9a07 --- /dev/null +++ b/tests/test_crm_lead.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo.addons.crm.tests.common import TestCrmCommon +from odoo.tests.common import users + + +class TestCRMLead(TestCrmCommon): + + @users('user_sales_manager') + def test_phone_mobile_update(self): + lead = self.env['crm.lead'].create({ + 'name': 'Lead 1', + 'country_id': self.env.ref('base.us').id, + 'phone': self.test_phone_data[0], + }) + self.assertEqual(lead.phone, self.test_phone_data[0]) + self.assertFalse(lead.mobile) + self.assertEqual(lead.phone_sanitized, self.test_phone_data_sanitized[0]) + + lead.write({'phone': False, 'mobile': self.test_phone_data[1]}) + self.assertFalse(lead.phone) + self.assertEqual(lead.mobile, self.test_phone_data[1]) + self.assertEqual(lead.phone_sanitized, self.test_phone_data_sanitized[1]) + + lead.write({'phone': self.test_phone_data[1], 'mobile': self.test_phone_data[2]}) + self.assertEqual(lead.phone, self.test_phone_data[1]) + self.assertEqual(lead.mobile, self.test_phone_data[2]) + self.assertEqual(lead.phone_sanitized, self.test_phone_data_sanitized[2]) diff --git a/views/crm_lead_views.xml b/views/crm_lead_views.xml new file mode 100644 index 0000000..bffec56 --- /dev/null +++ b/views/crm_lead_views.xml @@ -0,0 +1,53 @@ + + + + + Send SMS Text Message + sms.composer + form + new + { + 'default_composition_mode': 'mass', + 'default_mass_keep_log': True, + 'default_res_ids': active_ids + } + + list + + + Send SMS Text Message + sms.composer + form + new + { + 'default_composition_mode': 'comment', + 'default_res_id': active_id, + } + + form + + + + crm.lead.tree.opportunity.inherit.sms + crm.lead + + + +