Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3056 Vistas

Can we change the  name "survey"  in the  survey module into a dynamic variable where it will  be shown in the way the user  who creates  the survey wishes to display it as, for instance, 

survey  ---->  vote.

instead  of  start  survey  ------>  start  vote   

while sharing as well, instead of survey-------> vote


Avatar
Descartar
Mejor respuesta

Hello Anyayuu,

Hope you are doing well.

Yes, it it possible in fronted and mail, in this you have to add field in survey.survey model like user_survey_name = fields.Char(string="User survey Name") ,if field value is available then change name from "start survey" to "start (your user name)" as the code like below.


You can give such condition in mail template also..

This is the mail template used in survey module.
Id = "mail_template_user_input_invite"

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Descartar

Here is the code :-

<template id="survey_fill_form_start_inherit" inherit_id="survey.survey_fill_form_start"
name="Survey Fill Form Start Inherit">
<xpath expr="//div[hasclass('o_survey_start')]//div//button[@value='start']" position="replace">
<button type="submit" value="start" class="btn btn-primary btn-md" >
<t t-if="survey.certification">
Start Certification
</t>
<t t-else="">
<t t-if="survey.user_survey_name">
Start <t t-esc ="survey.user_survey_name"/>
<t t-else="">
Start Survey
</t>
</button>
</xpath>
</template>

Publicaciones relacionadas Respuestas Vistas Actividad
2
jun 25
2132
0
jul 23
2062
1
abr 23
10006
0
oct 22
2753
1
mar 22
5959