Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
851 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
11
kwi 25
91460
4
kwi 23
8025
2
lis 15
4257
0
kwi 22
4067
3
sie 21
4851