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.
Managing multiple websites
Getting ready
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.
How to do it...
Follow these steps to make the online website-multi website compatible:
- Add website.multi.mixin in the library.book model, as follows:
class LibraryBook(models.Model):
_name = 'library.book'
...