From 892bb2ae4b8ad1afac97b5b7f1d97524e9be8df3 Mon Sep 17 00:00:00 2001 From: rafaferri Date: Fri, 16 Jun 2023 09:50:01 +0200 Subject: [PATCH] [14.0][MIG] survey_crm_generation: migration to 14.0 --- survey_crm_generation/__manifest__.py | 4 +- .../demo/survey_crm_demo.xml | 10 +- survey_crm_generation/i18n/es.po | 102 ++++++++++++++++++ .../i18n/survey_crm_generation.pot | 74 ++++--------- survey_crm_generation/models/survey_survey.py | 2 +- .../tests/survey_crm_generation_tour.js | 2 +- 6 files changed, 131 insertions(+), 63 deletions(-) create mode 100644 survey_crm_generation/i18n/es.po diff --git a/survey_crm_generation/__manifest__.py b/survey_crm_generation/__manifest__.py index 6e698800..6898bcfa 100644 --- a/survey_crm_generation/__manifest__.py +++ b/survey_crm_generation/__manifest__.py @@ -3,11 +3,11 @@ { "name": "Survey leads generation", "summary": "Generate CRM leads/opportunities from surveys", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "development_status": "Beta", "category": "Marketing/Survey", "website": "https://github.com/OCA/survey", - "author": "Tecnativa, Odoo Community Association (OCA)", + "author": "Tecnativa, Odoo Community Association (OCA), Studio73", "maintainers": ["chienandalu"], "license": "AGPL-3", "depends": ["survey", "crm"], diff --git a/survey_crm_generation/demo/survey_crm_demo.xml b/survey_crm_generation/demo/survey_crm_demo.xml index 05ba00e9..302bbab8 100644 --- a/survey_crm_generation/demo/survey_crm_demo.xml +++ b/survey_crm_generation/demo/survey_crm_demo.xml @@ -1,9 +1,9 @@ - + Survey Leads - + OCA Partnership @@ -29,7 +29,7 @@ 0 E-mail address - textbox + text_box @@ -37,7 +37,7 @@ 1 Your company name? - textbox + text_box @@ -45,7 +45,7 @@ 2 And your name? - textbox + text_box diff --git a/survey_crm_generation/i18n/es.po b/survey_crm_generation/i18n/es.po new file mode 100644 index 00000000..994710a3 --- /dev/null +++ b/survey_crm_generation/i18n/es.po @@ -0,0 +1,102 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * survey_crm_generation +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-06-16 07:48+0000\n" +"PO-Revision-Date: 2023-06-16 07:48+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: survey_crm_generation +#: model_terms:ir.ui.view,arch_db:survey_crm_generation.survey_form +#: model_terms:ir.ui.view,arch_db:survey_crm_generation.survey_question_form +msgid "CRM" +msgstr "" + +#. module: survey_crm_generation +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_survey__crm_tag_ids +msgid "Crm Tag" +msgstr "" + +#. module: survey_crm_generation +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_survey__crm_team_id +msgid "Crm Team" +msgstr "" + +#. module: survey_crm_generation +#: model:ir.model.fields,field_description:survey_crm_generation.field_crm_lead__display_name +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_question__display_name +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_survey__display_name +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_user_input__display_name +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: survey_crm_generation +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_survey__generate_leads +msgid "Generate Leads" +msgstr "" + +#. module: survey_crm_generation +#: model:ir.model.fields,help:survey_crm_generation.field_survey_survey__generate_leads +msgid "Generate leads/opportunities linked to the generated quotations" +msgstr "" + +#. module: survey_crm_generation +#: model:ir.model.fields,field_description:survey_crm_generation.field_crm_lead__id +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_question__id +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_survey__id +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_user_input__id +msgid "ID" +msgstr "" + +#. module: survey_crm_generation +#: model:ir.model.fields,field_description:survey_crm_generation.field_crm_lead____last_update +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_question____last_update +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_survey____last_update +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_user_input____last_update +msgid "Last Modified on" +msgstr "Última modificación el" + +#. module: survey_crm_generation +#: model:ir.model,name:survey_crm_generation.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Iniciativa/Oportunidad" + +#. module: survey_crm_generation +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_user_input__opportunity_id +msgid "Opportunity" +msgstr "" + +#. module: survey_crm_generation +#: model:ir.model.fields,help:survey_crm_generation.field_survey_survey__crm_tag_ids +msgid "Set the default crm tags in the generated leads/opportunities" +msgstr "" + +#. module: survey_crm_generation +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_question__show_in_lead_description +msgid "Show In Lead Description" +msgstr "" + +#. module: survey_crm_generation +#: model:ir.model,name:survey_crm_generation.model_survey_survey +msgid "Survey" +msgstr "Encuesta" + +#. module: survey_crm_generation +#: model:ir.model,name:survey_crm_generation.model_survey_question +msgid "Survey Question" +msgstr "Pregunta de la encuesta" + +#. module: survey_crm_generation +#: model:ir.model,name:survey_crm_generation.model_survey_user_input +#: model:ir.model.fields,field_description:survey_crm_generation.field_crm_lead__survey_user_input_id +msgid "Survey User Input" +msgstr "Entrada de usuario de la encuesta" diff --git a/survey_crm_generation/i18n/survey_crm_generation.pot b/survey_crm_generation/i18n/survey_crm_generation.pot index 2ca96c3c..26b0c54d 100644 --- a/survey_crm_generation/i18n/survey_crm_generation.pot +++ b/survey_crm_generation/i18n/survey_crm_generation.pot @@ -4,8 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-06-16 07:47+0000\n" +"PO-Revision-Date: 2023-06-16 07:47+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -13,22 +15,6 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: survey_crm_generation -#: model:survey.question,question:survey_crm_generation.survey_oca_q3 -#: model:survey.question,title:survey_crm_generation.survey_oca_q3 -msgid "And your name?" -msgstr "" - -#. module: survey_crm_generation -#: model_terms:survey.survey,description:survey_crm_generation.become_partner -msgid "Be part of the Odoo Community!" -msgstr "" - -#. module: survey_crm_generation -#: model:survey.survey,title:survey_crm_generation.become_partner -msgid "Become OCA Partner" -msgstr "" - #. module: survey_crm_generation #: model_terms:ir.ui.view,arch_db:survey_crm_generation.survey_form #: model_terms:ir.ui.view,arch_db:survey_crm_generation.survey_question_form @@ -46,9 +32,11 @@ msgid "Crm Team" msgstr "" #. module: survey_crm_generation -#: model:survey.question,question:survey_crm_generation.survey_oca_q0 -#: model:survey.question,title:survey_crm_generation.survey_oca_q0 -msgid "E-mail address" +#: model:ir.model.fields,field_description:survey_crm_generation.field_crm_lead__display_name +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_question__display_name +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_survey__display_name +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_user_input__display_name +msgid "Display Name" msgstr "" #. module: survey_crm_generation @@ -62,21 +50,24 @@ msgid "Generate leads/opportunities linked to the generated quotations" msgstr "" #. module: survey_crm_generation -#: model:survey.question,comments_message:survey_crm_generation.survey_oca_q0 -#: model:survey.question,comments_message:survey_crm_generation.survey_oca_q1 -#: model:survey.question,comments_message:survey_crm_generation.survey_oca_q3 -msgid "If other, please specify:" +#: model:ir.model.fields,field_description:survey_crm_generation.field_crm_lead__id +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_question__id +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_survey__id +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_user_input__id +msgid "ID" msgstr "" #. module: survey_crm_generation -#: model:ir.model,name:survey_crm_generation.model_crm_lead -msgid "Lead/Opportunity" +#: model:ir.model.fields,field_description:survey_crm_generation.field_crm_lead____last_update +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_question____last_update +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_survey____last_update +#: model:ir.model.fields,field_description:survey_crm_generation.field_survey_user_input____last_update +msgid "Last Modified on" msgstr "" #. module: survey_crm_generation -#: model:crm.lead.tag,name:survey_crm_generation.tag_oca_partnership -#: model:crm.team,name:survey_crm_generation.oca_partnership_leads -msgid "OCA Partnership" +#: model:ir.model,name:survey_crm_generation.model_crm_lead +msgid "Lead/Opportunity" msgstr "" #. module: survey_crm_generation @@ -99,11 +90,6 @@ msgstr "" msgid "Survey" msgstr "" -#. module: survey_crm_generation -#: model:crm.lead.tag,name:survey_crm_generation.tag_survey_leads -msgid "Survey Leads" -msgstr "" - #. module: survey_crm_generation #: model:ir.model,name:survey_crm_generation.model_survey_question msgid "Survey Question" @@ -114,23 +100,3 @@ msgstr "" #: model:ir.model.fields,field_description:survey_crm_generation.field_crm_lead__survey_user_input_id msgid "Survey User Input" msgstr "" - -#. module: survey_crm_generation -#: model:survey.question,validation_error_msg:survey_crm_generation.survey_oca_q0 -#: model:survey.question,validation_error_msg:survey_crm_generation.survey_oca_q1 -#: model:survey.question,validation_error_msg:survey_crm_generation.survey_oca_q3 -msgid "The answer you entered is not valid." -msgstr "" - -#. module: survey_crm_generation -#: model:survey.question,constr_error_msg:survey_crm_generation.survey_oca_q0 -#: model:survey.question,constr_error_msg:survey_crm_generation.survey_oca_q1 -#: model:survey.question,constr_error_msg:survey_crm_generation.survey_oca_q3 -msgid "This question requires an answer." -msgstr "" - -#. module: survey_crm_generation -#: model:survey.question,question:survey_crm_generation.survey_oca_q1 -#: model:survey.question,title:survey_crm_generation.survey_oca_q1 -msgid "Your company name?" -msgstr "" diff --git a/survey_crm_generation/models/survey_survey.py b/survey_crm_generation/models/survey_survey.py index e8ca36e2..62b1eafc 100644 --- a/survey_crm_generation/models/survey_survey.py +++ b/survey_crm_generation/models/survey_survey.py @@ -10,7 +10,7 @@ class SurveySurvey(models.Model): help="Generate leads/opportunities linked to the generated quotations", ) crm_tag_ids = fields.Many2many( - comodel_name="crm.lead.tag", + comodel_name="crm.tag", help="Set the default crm tags in the generated leads/opportunities", ) crm_team_id = fields.Many2one(comodel_name="crm.team") diff --git a/survey_crm_generation/static/tests/survey_crm_generation_tour.js b/survey_crm_generation/static/tests/survey_crm_generation_tour.js index e8647f66..391f6e5b 100644 --- a/survey_crm_generation/static/tests/survey_crm_generation_tour.js +++ b/survey_crm_generation/static/tests/survey_crm_generation_tour.js @@ -14,7 +14,7 @@ odoo.define("survey_crm_generation.tour_test_survey_crm_generation", function ( [ { content: "Click on Start", - trigger: "a.btn:contains('Start')", + trigger: "button[value='start']", }, { content: "E-mail address",