is there a way to have another / custom color for priority widget, currently it is showing yellow using this code in xml/view file: field name="priority" widget="priority"
Screenshot:
regards
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
is there a way to have another / custom color for priority widget, currently it is showing yellow using this code in xml/view file: field name="priority" widget="priority"
Screenshot:
regards
Hi,
You can change it using css.
.o_field_widget .o_priority > .o_priority_star.fa-star {
color: //hex code of color you want;
}
Add this css to web.assets_backend in manifest
Regards
thank you for help but its not working as it should be.
i have created .css file and added entry in __manifes__.py file as below, restart server, upgraded module and navigate to the page in my test module but there is not change in priority widget. my be i did something wrong. please advice.
om_hospital/static/assets/mydeco.css:
.o_field_widget .o_priority > .o_priority_star.fa-star {
color: #008000;
}
in __manifest__.py :
'assets': {
'web.assets_backend': [
'om_hospital/static/assets/mydeco.css',
],
},
regards
it works perfectly when add !important as below in mydeco.css file:
.o_field_widget .o_priority > .o_priority_star.fa-star {
color: #008000 !important;
}
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
mar 24
|
2926 | ||
|
1
kwi 24
|
2526 | ||
|
1
maj 24
|
2015 | ||
|
1
mar 24
|
2599 | ||
|
2
lip 23
|
3893 |