Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Website
Entity: ir.module.module
Compute Method: _compute_is_installed_on_current_website
| Inputs | Method | Outputs |
|---|---|---|
|
|
"""
Compute for every theme in ``self`` if the current website is using it or not.
This method does not take dependencies into account, because if it did, it would show
the current website as having multiple different themes installed at the same time,
which would be confusing for the user.
"""
for module in self:
- module.is_installed_on_current_website = module == self.env['website'].get_current_website().theme_id
+ module.is_installed_on_current_website = module == self.env.website.theme_id
|
|
