Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1133 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
11
thg 4 25
92647
4
thg 4 23
8283
2
thg 11 15
4515
0
thg 4 22
4239
3
thg 8 21
5192