December 2018
Beginner to intermediate
404 pages
10h 14m
English
The pages given by the previous examples are not integrated into the Odoo website; we have no page footer or site menu. The Odoo website add-on module conveniently provides all of these features so that we don't have to worry about them ourselves.
To use the website features, we need the website add-on module installed in our work instance. We should add it as a dependency to the library_website add-on module. The __manifest__.py key depends should look like this:
'depends': [ 'library_checkout', 'website',],
To use the website features, we also need to introduce some modifications on the Controller and QWeb template.
Controllers can have an the additional website=True argument on the route:
@http.route('/helloworld', ...Read now
Unlock full access