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

Hello,

 I want to change widget just for specific field. I managed to change for all fields in following way:

.o_form_field_many2manytags .badge > .o_badge_text {
color:green;
}

But if field name is for example - my_field_test - how to set css code just for this field ???

<field name="my_field_test " widget="many2many_tags" />

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hello again,


That one you showed is just for normal field, I need to change css for the widget on specific button

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Give a class name for that field, and write a style for that class.

Ex:  

      <field name="my_field_test" class="myClass" />


in css
  

     .myClass {

            color:green;

        }

Ảnh đại diện
Huỷ bỏ