Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3060 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona

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>

Post correlati Risposte Visualizzazioni Attività
2
giu 25
2139
0
lug 23
2067
1
apr 23
10008
0
ott 22
2754
1
mar 22
5965