Odoo modules related to surveys
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.4 KiB

from odoo import models, fields, api, _
class SurveySurvey(models.Model):
_inherit = 'survey.survey'
@api.model
def _get_default_style(self):
return _("""/* Background (start and thank you) */
/* .jumbotron {
background-color: #e9ecef;
} */
/* Titles (survey and pages) */
/* h1 {} */
/* Descriptions (survey and pages) */
/* p {} */
/* Questions (title) */
/* h2 {} */
/* Responses labels */
/* label {} */
/* Buttons (start, navigate and submit) */
/* .btn-primary {
color: #FFFFFF;
background-color: #00A09D;
border-color: #00A09D;
}
.btn-primary:hover {
color: #FFFFFF;
background-color: #007a77;
border-color: #006d6b;
} */""")
scss_style = fields.Text(string="SCSS style", default=_get_default_style)
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", 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", translate=True,
help="This title will be used in the survey \"Thank you\" page. If empty, the label will be \"Thank you !\".")