Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3735 Zobrazení

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 ?

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 20
13830
1
čvc 22
2485
0
zář 21
214
0
kvě 21
2409
1
čvc 23
2486