Skip to content

Commit

Permalink
[14.0][MIG] survey_crm_generation: migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rferri44-S73 committed Jun 27, 2023
1 parent bff8226 commit 892bb2a
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 63 deletions.
4 changes: 2 additions & 2 deletions survey_crm_generation/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
10 changes: 5 additions & 5 deletions survey_crm_generation/demo/survey_crm_demo.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record model="crm.lead.tag" id="tag_survey_leads">
<record model="crm.tag" id="tag_survey_leads">
<field name="name">Survey Leads</field>
</record>
<record model="crm.lead.tag" id="tag_oca_partnership">
<record model="crm.tag" id="tag_oca_partnership">
<field name="name">OCA Partnership</field>
</record>
<!-- Sales Team -->
Expand All @@ -29,23 +29,23 @@
<field name="survey_id" ref="become_partner" />
<field name="sequence">0</field>
<field name="title">E-mail address</field>
<field name="question_type">textbox</field>
<field name="question_type">text_box</field>
<field name="show_in_lead_description" eval="True" />
<field name="constr_mandatory" eval="True" />
</record>
<record model="survey.question" id="survey_oca_q1">
<field name="survey_id" ref="become_partner" />
<field name="sequence">1</field>
<field name="title">Your company name?</field>
<field name="question_type">textbox</field>
<field name="question_type">text_box</field>
<field name="show_in_lead_description" eval="True" />
<field name="constr_mandatory" eval="True" />
</record>
<record model="survey.question" id="survey_oca_q3">
<field name="survey_id" ref="become_partner" />
<field name="sequence">2</field>
<field name="title">And your name?</field>
<field name="question_type">textbox</field>
<field name="question_type">text_box</field>
<field name="show_in_lead_description" eval="True" />
<field name="constr_mandatory" eval="True" />
</record>
Expand Down
102 changes: 102 additions & 0 deletions survey_crm_generation/i18n/es.po
Original file line number Diff line number Diff line change
@@ -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"
74 changes: 20 additions & 54 deletions survey_crm_generation/i18n/survey_crm_generation.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,17 @@
#
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"
"Content-Type: text/plain; charset=UTF-8\n"
"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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand All @@ -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 ""
2 changes: 1 addition & 1 deletion survey_crm_generation/models/survey_survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 892bb2a

Please sign in to comment.