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

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 25
3053
3
thg 11 22
34378
1
thg 3 15
4756
3
thg 6 21
11275
4
thg 7 15
3890