From 145cd916bc0a55e910036daf1ec8d4e18552869b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20FRAN=C3=87OIS?= Date: Mon, 20 Apr 2020 11:30:33 +0200 Subject: [PATCH] [ADD] translate=True --- survey_input_template_custom/models/survey_survey.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/survey_input_template_custom/models/survey_survey.py b/survey_input_template_custom/models/survey_survey.py index 5c4a5db..06c18eb 100644 --- a/survey_input_template_custom/models/survey_survey.py +++ b/survey_input_template_custom/models/survey_survey.py @@ -4,9 +4,9 @@ from odoo import models, fields class SurveySurvey(models.Model): _inherit = 'survey.survey' - start_btn_label = fields.Char(string="Start button label", track_visibility='onchange', + start_btn_label = fields.Char(string="Start button label", translate=True, track_visibility='onchange', help="This label will be used in the survey start button. If empty, the label will be \"Start survey\".") - submit_btn_label = fields.Char(string="Submit button label", track_visibility='onchange', + submit_btn_label = fields.Char(string="Submit button label", translate=True, track_visibility='onchange', help="This label will be used in the survey submit button. If empty, the label will be \"Submit survey\".") - thank_you_title = fields.Char(string="Thank you page title", + thank_you_title = fields.Char(string="Thank you page title", translate=True, help="This title will be used in the survey \"Thank you\" page. If empty, the label will be \"Thank you !\".")