0

Hello I would like to customize the colour (CSS) of a status bar in Odoo How can I custom the widget status bar only for a specific view?

<field name="state" data-name="custom_statusbar" widget="statusbar" statusbar_visible=""/>
Mayur Jotaniya
  • 304
  • 1
  • 18
rsiak
  • 51
  • 1
  • 6
  • 1
    Add particular class to that specific view and then add css over that class. – Keval Mehta Dec 23 '19 at 13:38
  • I can't add a class on a view. Ex: . Odoo generate it's own html so ... I can't add a specific css class – rsiak Dec 23 '19 at 14:51
  • Odoo should keep the class if you add it to the field. Try ``. Then you may need to set the css attributes to the children nodes with `!important` in your custom css file – ChesuCR Dec 23 '19 at 22:47
  • 2
    You can check my answer on a similar question: https://stackoverflow.com/questions/57726716/add-colurs-to-statusbar-in-odoo10/57786480#57786480 – Charif DZ Dec 24 '19 at 13:57

0 Answers0