[IMP] *: adapt model class names to correspond to model names (apply script)

closes odoo/design-themes#988

Related: odoo/odoo#178200
Related: odoo/enterprise#69762
Related: odoo/documentation#11115
Related: odoo/upgrade#6577
Related: odoo/upgrade-util#143
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
This commit is contained in:
Gorash
2024-10-14 14:03:18 +02:00
parent 1c5f769a95
commit 377616168b
31 changed files with 61 additions and 61 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ from odoo import models, tools
from odoo.http import request from odoo.http import request
class Http(models.AbstractModel): class IrHttp(models.AbstractModel):
_inherit = 'ir.http' _inherit = ['ir.http']
@classmethod @classmethod
def _pre_dispatch(cls, rule, args): def _pre_dispatch(cls, rule, args):
+1 -1
View File
@@ -4,7 +4,7 @@ from odoo import api, models
class Website(models.Model): class Website(models.Model):
_inherit = 'website' _inherit = ['website']
@api.model @api.model
def get_test_themes_websites_theme_preview(self): def get_test_themes_websites_theme_preview(self):
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeAnelusia(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_anelusia_post_copy(self, mod): def _theme_anelusia_post_copy(self, mod):
self.enable_view('website.template_footer_headline') self.enable_view('website.template_footer_headline')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeArtists(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_artists_post_copy(self, mod): def _theme_artists_post_copy(self, mod):
self.enable_view('website.template_header_vertical') self.enable_view('website.template_header_vertical')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeAvantgarde(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_avantgarde_post_copy(self, mod): def _theme_avantgarde_post_copy(self, mod):
self.enable_view('website.template_header_hamburger') self.enable_view('website.template_header_hamburger')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeAviato(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_aviato_post_copy(self, mod): def _theme_aviato_post_copy(self, mod):
self.enable_view('website.template_footer_contact') self.enable_view('website.template_footer_contact')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeBeauty(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_beauty_post_copy(self, mod): def _theme_beauty_post_copy(self, mod):
self.enable_view('website.footer_custom') self.enable_view('website.footer_custom')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeBewise(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_bewise_post_copy(self, mod): def _theme_bewise_post_copy(self, mod):
self.enable_view('website.template_footer_headline') self.enable_view('website.template_footer_headline')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeBistro(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_bistro_post_copy(self, mod): def _theme_bistro_post_copy(self, mod):
self.enable_view('website.template_header_vertical') self.enable_view('website.template_header_vertical')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeBookstore(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_bookstore_post_copy(self, mod): def _theme_bookstore_post_copy(self, mod):
self.enable_view('website.template_header_search') self.enable_view('website.template_header_search')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeBuzzy(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_buzzy_post_copy(self, mod): def _theme_buzzy_post_copy(self, mod):
self.enable_view('website.template_footer_headline') self.enable_view('website.template_footer_headline')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeClean(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_clean_post_copy(self, mod): def _theme_clean_post_copy(self, mod):
self.enable_view('website.template_header_default') self.enable_view('website.template_header_default')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeCobalt(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_cobalt_post_copy(self, mod): def _theme_cobalt_post_copy(self, mod):
self.enable_asset("website.ripple_effect_scss") self.enable_asset("website.ripple_effect_scss")
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeCommon(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_common_post_copy(self, mod): def _theme_common_post_copy(self, mod):
# Reset all default color when switching themes # Reset all default color when switching themes
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeEnark(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_enark_post_copy(self, mod): def _theme_enark_post_copy(self, mod):
self.enable_view('website.template_footer_descriptive') self.enable_view('website.template_footer_descriptive')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeGraphene(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_graphene_post_copy(self, mod): def _theme_graphene_post_copy(self, mod):
self.enable_view('website.template_header_stretch') self.enable_view('website.template_header_stretch')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeKea(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_kea_post_copy(self, mod): def _theme_kea_post_copy(self, mod):
self.enable_view('website.template_footer_minimalist') self.enable_view('website.template_footer_minimalist')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeKiddo(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_kiddo_post_copy(self, mod): def _theme_kiddo_post_copy(self, mod):
self.enable_view('website.template_header_default_align_right') self.enable_view('website.template_header_default_align_right')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeLoftspace(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_loftspace_post_copy(self, mod): def _theme_loftspace_post_copy(self, mod):
self.enable_view('website.template_header_search') self.enable_view('website.template_header_search')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeMonglia(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_monglia_post_copy(self, mod): def _theme_monglia_post_copy(self, mod):
self.enable_view('website.template_footer_minimalist') self.enable_view('website.template_footer_minimalist')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeNano(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_nano_post_copy(self, mod): def _theme_nano_post_copy(self, mod):
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeNotes(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_notes_post_copy(self, mod): def _theme_notes_post_copy(self, mod):
self.enable_view('website.template_footer_descriptive') self.enable_view('website.template_footer_descriptive')
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeOdooExperts(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_odoo_experts_post_copy(self, mod): def _theme_odoo_experts_post_copy(self, mod):
self.enable_view('website.template_footer_contact') self.enable_view('website.template_footer_contact')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeOrchid(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_orchid_post_copy(self, mod): def _theme_orchid_post_copy(self, mod):
self.enable_view('website.template_header_default') self.enable_view('website.template_header_default')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemePaptic(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_paptic_post_copy(self, mod): def _theme_paptic_post_copy(self, mod):
self.enable_asset("website.ripple_effect_scss") self.enable_asset("website.ripple_effect_scss")
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeRealEstate(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_real_estate_post_copy(self, mod): def _theme_real_estate_post_copy(self, mod):
self.enable_asset("website.ripple_effect_scss") self.enable_asset("website.ripple_effect_scss")
+2 -2
View File
@@ -3,8 +3,8 @@
from odoo import models from odoo import models
class TestThemeCustom(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
@property @property
def _header_templates(self): def _header_templates(self):
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeTreehouse(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_treehouse_post_copy(self, mod): def _theme_treehouse_post_copy(self, mod):
self.disable_view('website.header_visibility_standard') self.disable_view('website.header_visibility_standard')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeVehicle(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_vehicle_post_copy(self, mod): def _theme_vehicle_post_copy(self, mod):
self.enable_view('website.template_footer_minimalist') self.enable_view('website.template_footer_minimalist')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeYes(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_yes_post_copy(self, mod): def _theme_yes_post_copy(self, mod):
self.enable_view('website.template_footer_descriptive') self.enable_view('website.template_footer_descriptive')
+2 -2
View File
@@ -1,8 +1,8 @@
from odoo import models from odoo import models
class ThemeZap(models.AbstractModel): class ThemeUtils(models.AbstractModel):
_inherit = 'theme.utils' _inherit = ['theme.utils']
def _theme_zap_post_copy(self, mod): def _theme_zap_post_copy(self, mod):
self.enable_view('website.template_header_sales_four') self.enable_view('website.template_header_sales_four')