Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
3055 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen

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>

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Juni 25
2131
0
Juli 23
2062
1
Apr. 23
10005
0
Okt. 22
2753
1
März 22
5959