Creating a frontend web page
To get started with the basics of Odoo web development, a simple web page will be created. To do this, two components are needed: a web controller, triggered when a particular URL is accessed, and a QWeb template, to generate the HTML to be presented by that URL.
The web page used to showcase this is a book catalog, a simple list of the books in the library. The book catalog page will be accessible at http://localhost:8069/library/catalog
.
The following screenshot provides an example of what should be seen:
The first step is to add the web controller, which we will do in the next section.
Adding a web controller
Web controllers are Python objects, used to implement web features. They can link URL paths to an object method, so that when that URL is accessed, the method is executed.
For example, for the http://localhost:8069/library/catalog
URL, the accessed path is...