Browse Source

[ADD] translate=True

12.0
Rémi FRANÇOIS 5 years ago
parent
commit
145cd916bc
  1. 6
      survey_input_template_custom/models/survey_survey.py

6
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 !\".")
Loading…
Cancel
Save