March 2018
Beginner to intermediate
336 pages
8h 22m
English
To provide our first web page, we will add a controller object. We will begin by having this file imported with the module:
from . import controllers
from . import main
from odoo import http
class Todo(http.Controller):
@http.route('/helloworld', auth='public')
def hello_world(self):
return('<h1>Hello World!</h1>')
The odoo.http module provides the Odoo web-related features. Our controllers, responsible for page rendering, should be objects inheriting from the odoo.http.Controller ...
Read now
Unlock full access