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

Hi All,

Am trying to set the autofocus of a form notebook page tab based on the state of the form for odoo 11 CE. When I set autofocus="autofocus" on page, it has the focus when form loads . For conditional loading,  i've tried with the attrs ="{'autofocus': [('state','=','draft')]} but that didn't work.  I basically want a particular tab to have the focus when based on the value of the state.  Any ideas on how i can achieve this pls.
Your assistance will be much appreciated. Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 19
3612
2
thg 2 23
2483
2
thg 10 21
4355
4
thg 2 24
12625
2
thg 8 18
4364