Hi any body explain this @http.route usage in below code
@http.route('/hello/world', auth='public')('/hello/world', auth='public')
def test_con(self):
return "Hello World"
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi any body explain this @http.route usage in below code
@http.route('/hello/world', auth='public')('/hello/world', auth='public')
def test_con(self):
return "Hello World"
It is called web controller. Decorator marking the decorated method as being a handler for requests. The method must be part of a subclass of Controller.
If you enter localhost:8070/web/hello/world, it will print "Hello world" in your browser. This is responsible to decide which page is shown in which url. The parament auth is for authentication purpose. Is this page is shown for all or only logged in user only can view it. For more...
The type of authentication method, can be one of the following:
Thanks Dhinesh....