In v12, Odoo added support for multiple websites. This means that the same Odoo instance can be run on multiple domains, as well as when displaying different records.
For this recipe, we will be using the my_library module from the previous recipe. In this recipe, we will hide the books based on the website.
Follow these steps to make the online website-multi website compatible:
- Add website.multi.mixin in the library.book model, as follows:
_name = 'library.book'