Skip to Content
Menu
This question has been flagged
1 Reply
1977 Views

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
Discard
Best Answer

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
Discard

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 Replies Views Activity
1
Feb 24
558
0
Jul 23
922
1
Apr 23
8342
0
Oct 22
1504
1
Mar 22
4668