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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
2
Respostes
742
Vistes
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!
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
11
d’abr. 25
|
91122 | ||
|
4
d’abr. 23
|
7940 | ||
|
2
de nov. 15
|
4203 | ||
|
0
d’abr. 22
|
4025 | ||
|
3
d’ag. 21
|
4765 |