Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3058 Visninger

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
Kassér
Bedste svar

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
Kassér

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>

Related Posts Besvarelser Visninger Aktivitet
2
jun. 25
2139
0
jul. 23
2065
1
apr. 23
10007
0
okt. 22
2754
1
mar. 22
5961