We'll add website capabilities to the library addon developed in Chapter 5, Application models, and following. What we're interested in is allowing users to browse through the library and, if they are logged in with the appropriate permissions, enable them to edit book content right from the website interface.
Creating or modifying templates – QWeb
Getting ready
As we make use of the library.book model, get the code in Chapter 5, Application Models, for my_module. For convenience, this recipe's code contains a copy of it. We'll create a module called r2_templates.