April 2016
Beginner to intermediate
400 pages
9h 16m
English
We'll add website capabilities to the library addon developed in Chapter 4, 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.
As we make use of the library.book model, get chapter 4's code for my_module. For convenience, this recipe's code contains a copy of it.
We'll need to define a couple of controllers and views:
views/library_book_templates.xml.<odoo> <template id="books"> <t t-call="website.layout"> <section> This is an editable text before the ...
Read now
Unlock full access