Modifying an existing handler
When you install the website module, the /website/info
path displays some information about your Odoo instance. In this recipe, we will override this in order to change this information page's layout, and to also change what is displayed.
Getting ready
Install the website
module and inspect the /website/info
path. In this recipe, we will update the/website/info
route to provide more information.
How to do it...
We'll have to adapt the existing template and override the existing handler. We can do this as follows:
- Override the
qweb
template in a file calledviews/templates.xml
, as follows:<?xml version="1.0" encoding="UTF-8"?> <odoo> Â Â <template id="show_website_info"Â Â Â Â Â Â Â Â Â Â Â Â Â Â inherit_id="website.show_website_info"> Â Â Â Â <xpath expr="//dl[@t-foreach=&apos...