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?
Cette question a été signalée
2
Réponses
3068
Vues
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!
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
11
avr. 25
|
98610 | ||
|
|
4
avr. 23
|
10417 | ||
|
|
2
nov. 15
|
5844 | ||
|
|
0
avr. 22
|
5709 | ||
|
|
3
août 21
|
7142 |