Skip to content

Commit

Permalink
[MIG] website_event_crm_invitation: Migration to 15.0
Browse files Browse the repository at this point in the history
TT45105
  • Loading branch information
chienandalu committed Sep 15, 2023
1 parent 5deba05 commit dd13674
Show file tree
Hide file tree
Showing 15 changed files with 257 additions and 390 deletions.
16 changes: 8 additions & 8 deletions website_event_crm_invitation/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Website, event and CRM integration
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fevent-lightgray.png?logo=github
:target: https://github.com/OCA/event/tree/13.0/website_event_crm_invitation
:alt: OCA/event
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/15.0/website_event_crm_extension
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/event-13-0/event-13-0-website_event_crm_invitation
:target: https://translation.odoo-community.org/projects/web-15-0/web-15-0-website_event_crm_extension
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/event&target_branch=13.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -102,10 +102,10 @@ To use this module, you need to:
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/event/issues>`_.
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/event/issues/new?body=module:%20website_event_crm_invitation%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/web/issues/new?body=module:%20website_event_crm_extension%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Expand Down Expand Up @@ -143,6 +143,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Yajo|

This module is part of the `OCA/event <https://github.com/OCA/event/tree/13.0/website_event_crm_invitation>`_ project on GitHub.
This module is part of the `OCA/web <https://github.com/OCA/web/tree/15.0/website_event_crm_extension>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion website_event_crm_invitation/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Website, event and CRM integration",
"summary": "Invite leads to event types on website",
"version": "13.0.1.1.1",
"version": "15.0.1.0.0",
"development_status": "Production/Stable",
"category": "Marketing",
"website": "https://github.com/OCA/event",
Expand Down
22 changes: 11 additions & 11 deletions website_event_crm_invitation/data/mail_template_data.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 Tecnativa - Jairo Llopis
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<data noupdate="1">
<odoo noupdate="1">
<record id="crm_lead_event_type_tpl" model="mail.template">
<field name="name">Invite to event category</field>
<field name="auto_delete" eval="False" />
<field name="email_to">${object.email_from or ''}</field>
<field name="partner_to">${object.partner_id.id or ''}</field>
<field name="email_to">{{object.email_from or ''}}</field>
<field name="partner_to">{{object.partner_id.id or ''}}</field>
<field
name="lang"
>${object.partner_id.lang or object.env.context.get("lang") or object.env.user.lang}</field>
>{{object.partner_id.lang or object.env.context.get("lang") or object.env.user.lang}}</field>
<field name="model_id" ref="crm.model_crm_lead" />
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p
style="margin: 0px; padding: 0px; font-size: 13px;"
>Dear ${object.partner_name or object.partner_id.name},</p>
<p style="margin: 0px; padding: 0px; font-size: 13px;">Dear <t
t-out="object.partner_name or object.partner_id.name"
/>,</p>
<p style="margin: 0px; padding: 0px; font-size: 13px;">
You seem to be interested in registering into an event of category
<b>${object.event_type_id.name}</b>.
<strong t-out="object.event_type_id.name" />.
</p>
<p style="margin: 0px; padding: 0px; font-size: 13px;">
I just wanted to inform you that
Expand All @@ -28,11 +28,11 @@
<p>
<div style="margin: 16px 8px 16px 8px; text-align: center;">
<a
href="${ctx.get('base_url', '')}${object.event_type_website_url}"
t-attf-href="#{ctx.get('base_url', '')}#{object.event_type_website_url}"
style="background-color: #875a7b; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;"
>
View events of category
<strong>${object.event_type_id.name}</strong>
<strong t-out="object.event_type_id.name" />
</a>
</div>
</p>
Expand All @@ -45,4 +45,4 @@
</div>
</field>
</record>
</data>
</odoo>
170 changes: 68 additions & 102 deletions website_event_crm_invitation/i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_event_crm_invitation
# * website_event_crm_invitation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-15 11:28+0000\n"
"PO-Revision-Date: 2021-02-15 11:32+0000\n"
"Last-Translator: Jairo Llopis <jairo.llopis@tecnativa.com>\n"
"POT-Creation-Date: 2023-09-15 11:34+0000\n"
"PO-Revision-Date: 2023-09-15 13:42+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es_ES\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.4.2\n"
"Plural-Forms: \n"
"X-Generator: Poedit 3.3.1\n"

#. module: website_event_crm_invitation
#: model:mail.template,body_html:website_event_crm_invitation.crm_lead_event_type_tpl
msgid ""
"<div style=\"margin: 0px; padding: 0px;\">\n"
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
"\">Dear ${object.partner_name or object.partner_id.name},</p>\n"
"\">Dear <t t-out=\"object.partner_name or object.partner_id.name\"/>,</p>\n"
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;\">\n"
" You seem to be interested in registering into an event "
"of category\n"
" <b>${object.event_type_id.name}</b>.\n"
" <strong t-out=\"object.event_type_id.name\"/>.\n"
" </p>\n"
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;\">\n"
" I just wanted to inform you that\n"
Expand All @@ -37,11 +37,11 @@ msgid ""
" <p>\n"
" <div style=\"margin: 16px 8px 16px 8px; text-align: "
"center;\">\n"
" <a href=\"${ctx.get('base_url', '')}${object."
" <a t-attf-href=\"#{ctx.get('base_url', '')}#{object."
"event_type_website_url}\" style=\"background-color: #875a7b; padding: 8px "
"16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;\">\n"
" View events of category\n"
" <strong>${object.event_type_id.name}</strong>\n"
" <strong t-out=\"object.event_type_id.name\"/>\n"
" </a>\n"
" </div>\n"
" </p>\n"
Expand All @@ -55,14 +55,52 @@ msgid ""
" </div>\n"
" "
msgstr ""
"<div style=\"margin: 0px; padding: 0px;\">\n"
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
"\">Estimado/a <t t-out=\"object.partner_name or object.partner_id.name\"/>,"
"</p>\n"
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;\">\n"
" Parece que está interesado/a en los eventos de la "
"categoría \n"
" <strong t-out=\"object.event_type_id.name\"/>.\n"
" </p>\n"
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;\">\n"
" Queríamos informarle de que\n"
" <b>tenemos publicados ahora mismo algunos eventos de "
"esa categoría</b>\n"
" en nuestro sitio web:\n"
" </p>\n"
" <p>\n"
" <div style=\"margin: 16px 8px 16px 8px; text-align: "
"center;\">\n"
" <a t-attf-href=\"#{ctx.get('base_url', '')}#{object."
"event_type_website_url}\" style=\"background-color: #875a7b; padding: 8px "
"16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;\">\n"
" Ver eventos de la categoría\n"
" <strong t-out=\"object.event_type_id.name\"/>\n"
" </a>\n"
" </div>\n"
" </p>\n"
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;\">\n"
" Por favor, visite ese enlace y regístrese en cualquier "
"evento que le interese.\n"
" </p>\n"
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;\">\n"
" Saludos.\n"
" </p>\n"
" </div>\n"
" "

#. module: website_event_crm_invitation
#: model_terms:ir.ui.view,arch_db:website_event_crm_invitation.crm_lead_view_form
msgid ""
"<i class=\"fa fa-info\"/> It's not possible to determine to propose events "
"if the company isn't set or if the company has no websites. So no invitation "
"will be sent for this lead"
"if the company isn't set or if the company has no websites. So no "
"invitation will be sent for this lead"
msgstr ""
"<i class=\"fa fa-info\"/> No es posible proponer eventos si la compañía no "
"está establecida o si la compañía no tiene sitios web configurados. De modo "
"que no se invitará invitación para esta iniciativa/oportunidad."

#. module: website_event_crm_invitation
#: model:ir.model.fields,field_description:website_event_crm_invitation.field_crm_stage__auto_advance_stage_invite_website_event_type
Expand All @@ -74,7 +112,7 @@ msgstr ""
#. module: website_event_crm_invitation
#: model:ir.model.fields,field_description:website_event_crm_invitation.field_crm_lead__auto_invite_warning
msgid "Auto Invite Warning"
msgstr ""
msgstr "Advertencia de autoinvitación"

#. module: website_event_crm_invitation
#: model:ir.model,name:website_event_crm_invitation.model_crm_stage
Expand All @@ -93,8 +131,8 @@ msgstr "Categorías de evento"

#. module: website_event_crm_invitation
#: model:ir.model,name:website_event_crm_invitation.model_event_type
msgid "Event Category"
msgstr "Categoría de evento"
msgid "Event Template"
msgstr ""

#. module: website_event_crm_invitation
#: model:ir.model.fields,field_description:website_event_crm_invitation.field_crm_lead__event_type_website_url
Expand All @@ -106,6 +144,11 @@ msgstr "URL en el sitio web de la categoría de evento"
msgid "Invite automatically to website event category"
msgstr "Invitar automáticamente a categorías de evento en el sitio web"

#. module: website_event_crm_invitation
#: model:mail.template,name:website_event_crm_invitation.crm_lead_event_type_tpl
msgid "Invite to event category"
msgstr "Invitar a categoría de evento"

#. module: website_event_crm_invitation
#: code:addons/website_event_crm_invitation/models/crm_lead.py:0
#, python-format
Expand All @@ -121,9 +164,13 @@ msgstr "Invitar al sitio web"
#: code:addons/website_event_crm_invitation/models/crm_lead.py:0
#, python-format
msgid ""
"It's not possible to determine to propose events if the company isn't set or "
"if the company has no websites. So no invitation will be sent for this lead"
"It's not possible to determine to propose events if the company isn't set "
"or if the company has no websites. So no invitation will be sent for this "
"lead"
msgstr ""
"No es posible proponer eventos si la compañía no está establecida o si la "
"compañía no tiene sitios web configurados. De modo que no se invitará "
"invitación para esta iniciativa/oportunidad."

#. module: website_event_crm_invitation
#: model:ir.model,name:website_event_crm_invitation.model_crm_lead
Expand All @@ -147,8 +194,8 @@ msgstr "Seleccione una categoría de eventos con eventos publicados."
#. module: website_event_crm_invitation
#: model:ir.model.fields,help:website_event_crm_invitation.field_crm_stage__auto_advance_stage_invite_website_event_type
msgid ""
"When an opportunity in this stage is invited to a website event category, it "
"will advance automatically to the next stage."
"When an opportunity in this stage is invited to a website event category, "
"it will advance automatically to the next stage."
msgstr ""
"Cuando se invite a ver la categoría de evento en el sitio web a oportunidad "
"en esta etapa, avanzará automáticamente a la siguiente etapa."
Expand All @@ -164,84 +211,3 @@ msgstr ""
"en su categoría con plazas disponibles, las oportunidades en esta etapa "
"serán invitadas a esa categoría y movidas a la siguiente etapa "
"automáticamente."

#~ msgid ""
#~ "<div style=\"margin: 0px; padding: 0px;\">\n"
#~ " <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
#~ "\">Dear ${object.partner_name or object.partner_id.name},</p>\n"
#~ " <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
#~ "\">\n"
#~ " You seem to be interested in registering into an "
#~ "event of category\n"
#~ " <b>${object.event_type_id.name}</b>.\n"
#~ " </p>\n"
#~ " <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
#~ "\">\n"
#~ " I just wanted to inform you that\n"
#~ " <b>we have currently some event(s) of that category "
#~ "published</b>\n"
#~ " in our website:\n"
#~ " </p>\n"
#~ " <p>\n"
#~ " <div style=\"margin: 16px 8px 16px 8px; text-align: "
#~ "center;\">\n"
#~ " <a href=\"${object.event_type_website_url}\" "
#~ "style=\"background-color: #875a7b; padding: 8px 16px 8px 16px; text-"
#~ "decoration: none; color: #fff; border-radius: 5px;\">\n"
#~ " View events of category\n"
#~ " <strong>${object.event_type_id.name}</"
#~ "strong>\n"
#~ " </a>\n"
#~ " </div>\n"
#~ " </p>\n"
#~ " <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
#~ "\">\n"
#~ " Please visit that link and register to any event you "
#~ "like.\n"
#~ " </p>\n"
#~ " <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
#~ "\">\n"
#~ " Regards.\n"
#~ " </p>\n"
#~ " </div>\n"
#~ " "
#~ msgstr ""
#~ "<div style=\"margin: 0px; padding: 0px;\">\n"
#~ " <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
#~ "\">Estimado/a ${object.partner_name or object.partner_id.name}:</p>\n"
#~ " <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
#~ "\">\n"
#~ " Parece que usted está interesado en registrarse en un "
#~ "evento de categoría\n"
#~ " <b>${object.event_type_id.name}</b>.\n"
#~ " </p>\n"
#~ " <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
#~ "\">\n"
#~ " Tan solo quería informarle de que\n"
#~ " <b>actualmente tenemos algún evento publicado de "
#~ "dicha categoría</b>\n"
#~ " en nuestro sitio web:\n"
#~ " </p>\n"
#~ " <p>\n"
#~ " <div style=\"margin: 16px 8px 16px 8px; text-align: "
#~ "center;\">\n"
#~ " <a href=\"${object.event_type_website_url}\" "
#~ "style=\"background-color: #875a7b; padding: 8px 16px 8px 16px; text-"
#~ "decoration: none; color: #fff; border-radius: 5px;\">\n"
#~ " Ver eventos de la categoría\n"
#~ " <strong>${object.event_type_id.name}</"
#~ "strong>\n"
#~ " </a>\n"
#~ " </div>\n"
#~ " </p>\n"
#~ " <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
#~ "\">\n"
#~ " Por favor, visite ese enlace y regístrese en "
#~ "cualquier evento que desee.\n"
#~ " </p>\n"
#~ " <p style=\"margin: 0px; padding: 0px; font-size: 13px;"
#~ "\">\n"
#~ " Saludos.\n"
#~ " </p>\n"
#~ " </div>\n"
#~ " "
Loading

0 comments on commit dd13674

Please sign in to comment.