跳至內容
選單
此問題已被標幟
1 回覆
3781 瀏覽次數

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 ?

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 20
13888
1
7月 22
2511
0
9月 21
214
0
5月 21
2457
1
7月 23
2523