Odoo Help


workflow header buttons

Francisco Castro
on 2/28/14, 1:10 PM 2,431 views

I cant put color on the buttons of the header I have this codeto the header:


   <button name="pet_regist" string="registado" status="registado"  class="oe_highlight" type="workflow" />
   <field name="state" widget="statusbar" statusbar_visible="novo,registado,validado,morto" 
     statusbar_colors='{"novo":"blue","registado":"blue","validado":"blue","morto":"blue"}' /> 

my buttons of the header on the right are grey I need in first instance when I click on the create button the "novo" shows in blue.

image description

The buttons on the header dont change color when the state changes, neither when I click on the menu "all pets" the state "novo" (1st state) appears in blue

Francisco Castro
on 3/3/14, 5:28 AM

How can I change the color of the buttons on the right "novo"->"registado"->"Validado"->"Morto" when I change the state of the workflow?

Francisco Castro
on 3/11/14, 9:15 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 2/28/14, 1:10 PM
Seen: 2431 times
Last updated: 3/16/15, 8:10 AM