Browse Source

[FIX] button method cannot be api.model

pull/464/head
Ivan Yelizariev 1 year ago
parent
commit
673d8e536a
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      website_multi_theme/__manifest__.py
  2. +1
    -0
      website_multi_theme/data/themes_default.xml
  3. +1
    -2
      website_multi_theme/wizards/website_config_settings.py

+ 1
- 1
website_multi_theme/__manifest__.py View File

@@ -6,7 +6,7 @@
{
"name": "Website Multi Theme",
"summary": "Support different theme per website",
"version": "11.0.1.3.2",
"version": "11.0.1.3.3",
"category": "Website",
"website": "https://www.tecnativa.com",
"author": "Tecnativa, IT-Projects LLC, Odoo Community Association (OCA)",

+ 1
- 0
website_multi_theme/data/themes_default.xml View File

@@ -16,5 +16,6 @@
<!-- This method prepare assets and applies default theme for all websites -->
<function model="res.config.settings"
name="multi_theme_reload"
eval="([],)"
/>
</odoo>

+ 1
- 2
website_multi_theme/wizards/website_config_settings.py View File

@@ -3,7 +3,7 @@

import logging

from odoo import fields, models, api
from odoo import fields, models

_logger = logging.getLogger(__name__)

@@ -13,7 +13,6 @@ class WebsiteConfigSettings(models.TransientModel):

multi_theme_id = fields.Many2one(related="website_id.multi_theme_id")

@api.model
def multi_theme_reload(self):
"""Update multiwebsite themes when loading a new wizard."""
_logger.info("Reloading available multi-website themes")

Loading…
Cancel
Save