跳至內容
選單
此問題已被標幟
6348 瀏覽次數

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

<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"}' /> 
</header>

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

作者

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

相關帖文 回覆 瀏覽次數 活動
2
1月 25
3058
3
11月 22
34381
1
3月 15
4757
3
6月 21
11276
4
7月 15
3893