Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3656 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
dec. 20
13728
1
jul. 22
2454
0
sep. 21
214
0
mei 21
2344
1
jul. 23
2436