From 0d0b8bf5f88cd05e9eec580deee6d29ec230fee3 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Wed, 19 Feb 2025 14:09: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 | 4 ++++ __manifest__.py | 18 ++++++++++++++++++ i18n/iap_crm.pot | 26 ++++++++++++++++++++++++++ i18n/ru.po | 28 ++++++++++++++++++++++++++++ models/__init__.py | 4 ++++ models/crm_lead.py | 13 +++++++++++++ 6 files changed, 93 insertions(+) create mode 100644 __init__.py create mode 100644 __manifest__.py create mode 100644 i18n/iap_crm.pot create mode 100644 i18n/ru.po create mode 100644 models/__init__.py create mode 100644 models/crm_lead.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..a01a436 --- /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': "IAP / CRM", + 'summary': """Bridge between IAP and CRM""", + 'description': """Bridge between IAP and CRM""", + 'category': 'Hidden/Tools', + 'version': '1.0', + 'depends': [ + 'crm', + 'iap_mail', + ], + 'installable': True, + 'auto_install': True, + 'license': 'LGPL-3', +} diff --git a/i18n/iap_crm.pot b/i18n/iap_crm.pot new file mode 100644 index 0000000..eccb4e7 --- /dev/null +++ b/i18n/iap_crm.pot @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * iap_crm +# +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: iap_crm +#: model:ir.model,name:iap_crm.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: iap_crm +#: model:ir.model.fields,field_description:iap_crm.field_crm_lead__reveal_id +msgid "Reveal ID" +msgstr "" diff --git a/i18n/ru.po b/i18n/ru.po new file mode 100644 index 0000000..d22707d --- /dev/null +++ b/i18n/ru.po @@ -0,0 +1,28 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * iap_crm +# +# 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: iap_crm +#: model:ir.model,name:iap_crm.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Потенциальные сделки" + +#. module: iap_crm +#: model:ir.model.fields,field_description:iap_crm.field_crm_lead__reveal_id +msgid "Reveal ID" +msgstr "Раскрыть идентификатор" diff --git a/models/__init__.py b/models/__init__.py new file mode 100644 index 0000000..00140f9 --- /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 crm_lead diff --git a/models/crm_lead.py b/models/crm_lead.py new file mode 100644 index 0000000..ea8a0fd --- /dev/null +++ b/models/crm_lead.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import fields, models + + +class Lead(models.Model): + _inherit = 'crm.lead' + + reveal_id = fields.Char(string='Reveal ID') # Technical ID of reveal request done by IAP + + def _merge_get_fields(self): + return super(Lead, self)._merge_get_fields() + ['reveal_id']