Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3627 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 20
13705
1
lug 22
2423
0
set 21
214
0
mag 21
2326
1
lug 23
2424