Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
1176 Переглядів

I have a module that uses css to change the color to what i want, but once i press "start live survey" the color goes back to default purple, whats the way around this before i plug it into my app?

Аватар
Відмінити
Найкраща відповідь

The survey module's asset state a new key in the __manifest__.py:

survey.survey_assets

In there, in Odoo 18 for example, you can find the following style sheets:

  • web/static/src/scss/pre_variables.scss
  • web/static/lib/bootstrap/scss/_variables.scss
  • web/static/lib/bootstrap/scss/_variables-dark.scss
  • web/static/lib/bootstrap/scss/_maps.scss
  • survey/static/src/scss/survey_templates_form.scss
  • survey/static/src/scss/survey_templates_results.scss


So, when adding your style sheets as an asset under that key in your custom module, you should be good to go.

Аватар
Відмінити
Найкраща відповідь

Customizing the styles of survey/static/src/scss/survey_templates_form.scss worked for me!

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
11
квіт. 25
92730
4
квіт. 23
8328
2
лист. 15
4546
0
квіт. 22
4255
3
серп. 21
5204