Начальное наполнение

This commit is contained in:
parent 13de4e9556
commit 0d0b8bf5f8
6 changed files with 93 additions and 0 deletions

4
__init__.py Normal file
View File

@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models

18
__manifest__.py Normal file
View File

@ -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',
}

26
i18n/iap_crm.pot Normal file
View File

@ -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 ""

28
i18n/ru.po Normal file
View File

@ -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 "Раскрыть идентификатор"

4
models/__init__.py Normal file
View File

@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import crm_lead

13
models/crm_lead.py Normal file
View File

@ -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']