Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
928 Weergaven

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?

Avatar
Annuleer
Beste antwoord

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.

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
11
apr. 25
91877
4
apr. 23
8084
2
nov. 15
4356
0
apr. 22
4114
3
aug. 21
4999