We'll add website capabilities to the my_library add-on developed in Chapter 5, Application Models. 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 details right from the website interface.
Creating or modifying templates – QWeb
Getting ready
For this recipe, we will be using the library.book model of the add-on module my_library from Chapter 4, Creating Odoo Modules
. For convenience, this recipe's code contains a copy of it.