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

i am reading view section in the documentation. https://www.odoo.com/documentation/14.0/developer/reference/views.html


i found view 


class MyController(odoo.http.Controller):
@http.route('/module_name/hello', auth='user', type='json')
def hello(self):
return {
'html': """


rel="stylesheet">

hello, world


"""
}



what is the use of this code ?

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

Hi,

 Banner route will show a banner like section in the header of the tree view, where we can just show some labels or add some buttons asking user to configure some master datas. You can see such banner routes in accounting module, sales and purchase.

See this: 

https://www.youtube.com/watch?v=Suyekbyj1cs


Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 20
13464
1
thg 7 22
2215
0
thg 9 21
214
0
thg 5 21
2149
1
thg 7 23
2344