In this chapter, we will add self-service features for the Library members. Members can be assigned a login and access to their list of checkout requests. With this, we will be able to cover the essential techniques for website development: creating dynamic pages, passing parameters between pages, creating forms, and handling form data validation.
For these new library website features, we will create a new add-on module, library_website
.
As usual, we will start by creating the add-on's manifest
file. Create the library_website/__manifest__.py
file with the following code:
{ 'name': 'Library Website', 'description': 'Create and check book checkout requests.', 'author': 'Daniel Reis', 'depends': [ 'library_checkout' ], 'data': [ 'security/ir.model.access.csv', 'security/library_security.xml', 'views/library_member.xml', ], }
The website features will depend on library_checkout
. We are not yet adding a dependency on...