Skip to content

Commit

Permalink
[IMP] *: adapt model class names to correspond to model names (apply …
Browse files Browse the repository at this point in the history
…script)

closes #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) <[email protected]>
  • Loading branch information
Gorash committed Oct 15, 2024
1 parent 1c5f769 commit 3776161
Show file tree
Hide file tree
Showing 31 changed files with 61 additions and 61 deletions.
4 changes: 2 additions & 2 deletions test_themes/models/ir_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from odoo.http import request


class Http(models.AbstractModel):
_inherit = 'ir.http'
class IrHttp(models.AbstractModel):
_inherit = ['ir.http']

@classmethod
def _pre_dispatch(cls, rule, args):
Expand Down
2 changes: 1 addition & 1 deletion test_themes/models/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class Website(models.Model):
_inherit = 'website'
_inherit = ['website']

@api.model
def get_test_themes_websites_theme_preview(self):
Expand Down
4 changes: 2 additions & 2 deletions theme_anelusia/models/theme_anelusia.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeAnelusia(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_anelusia_post_copy(self, mod):
self.enable_view('website.template_footer_headline')
4 changes: 2 additions & 2 deletions theme_artists/models/theme_artists.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeArtists(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_artists_post_copy(self, mod):
self.enable_view('website.template_header_vertical')
Expand Down
4 changes: 2 additions & 2 deletions theme_avantgarde/models/theme_avantgarde.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeAvantgarde(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_avantgarde_post_copy(self, mod):
self.enable_view('website.template_header_hamburger')
Expand Down
4 changes: 2 additions & 2 deletions theme_aviato/models/theme_aviato.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeAviato(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_aviato_post_copy(self, mod):
self.enable_view('website.template_footer_contact')
Expand Down
4 changes: 2 additions & 2 deletions theme_beauty/models/theme_beauty.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeBeauty(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_beauty_post_copy(self, mod):
self.enable_view('website.footer_custom')
4 changes: 2 additions & 2 deletions theme_bewise/models/theme_bewise.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeBewise(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_bewise_post_copy(self, mod):
self.enable_view('website.template_footer_headline')
Expand Down
4 changes: 2 additions & 2 deletions theme_bistro/models/theme_bistro.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeBistro(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_bistro_post_copy(self, mod):
self.enable_view('website.template_header_vertical')
Expand Down
4 changes: 2 additions & 2 deletions theme_bookstore/models/theme_bookstore.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeBookstore(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_bookstore_post_copy(self, mod):
self.enable_view('website.template_header_search')
4 changes: 2 additions & 2 deletions theme_buzzy/models/theme_buzzy.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeBuzzy(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_buzzy_post_copy(self, mod):
self.enable_view('website.template_footer_headline')
Expand Down
4 changes: 2 additions & 2 deletions theme_clean/models/theme_clean.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeClean(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_clean_post_copy(self, mod):
self.enable_view('website.template_header_default')
Expand Down
4 changes: 2 additions & 2 deletions theme_cobalt/models/theme_cobalt.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeCobalt(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_cobalt_post_copy(self, mod):
self.enable_asset("website.ripple_effect_scss")
Expand Down
4 changes: 2 additions & 2 deletions theme_common/models/theme_common.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeCommon(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_common_post_copy(self, mod):
# Reset all default color when switching themes
Expand Down
4 changes: 2 additions & 2 deletions theme_enark/models/theme_enark.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeEnark(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_enark_post_copy(self, mod):
self.enable_view('website.template_footer_descriptive')
Expand Down
4 changes: 2 additions & 2 deletions theme_graphene/models/theme_graphene.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeGraphene(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_graphene_post_copy(self, mod):
self.enable_view('website.template_header_stretch')
Expand Down
4 changes: 2 additions & 2 deletions theme_kea/models/theme_kea.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeKea(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_kea_post_copy(self, mod):
self.enable_view('website.template_footer_minimalist')
4 changes: 2 additions & 2 deletions theme_kiddo/models/theme_kiddo.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeKiddo(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_kiddo_post_copy(self, mod):
self.enable_view('website.template_header_default_align_right')
Expand Down
4 changes: 2 additions & 2 deletions theme_loftspace/models/theme_loftspace.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeLoftspace(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_loftspace_post_copy(self, mod):
self.enable_view('website.template_header_search')
4 changes: 2 additions & 2 deletions theme_monglia/models/theme_monglia.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeMonglia(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_monglia_post_copy(self, mod):
self.enable_view('website.template_footer_minimalist')
4 changes: 2 additions & 2 deletions theme_nano/models/theme_nano.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeNano(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_nano_post_copy(self, mod):

Expand Down
4 changes: 2 additions & 2 deletions theme_notes/models/theme_notes.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeNotes(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_notes_post_copy(self, mod):
self.enable_view('website.template_footer_descriptive')
4 changes: 2 additions & 2 deletions theme_odoo_experts/models/theme_odoo_experts.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeOdooExperts(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_odoo_experts_post_copy(self, mod):
self.enable_view('website.template_footer_contact')
4 changes: 2 additions & 2 deletions theme_orchid/models/theme_orchid.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeOrchid(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_orchid_post_copy(self, mod):
self.enable_view('website.template_header_default')
Expand Down
4 changes: 2 additions & 2 deletions theme_paptic/models/theme_paptic.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemePaptic(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_paptic_post_copy(self, mod):
self.enable_asset("website.ripple_effect_scss")
Expand Down
4 changes: 2 additions & 2 deletions theme_real_estate/models/theme_real_estate.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeRealEstate(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_real_estate_post_copy(self, mod):
self.enable_asset("website.ripple_effect_scss")
Expand Down
4 changes: 2 additions & 2 deletions theme_test_custo/models/theme_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from odoo import models


class TestThemeCustom(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

@property
def _header_templates(self):
Expand Down
4 changes: 2 additions & 2 deletions theme_treehouse/models/theme_treehouse.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeTreehouse(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_treehouse_post_copy(self, mod):
self.disable_view('website.header_visibility_standard')
Expand Down
4 changes: 2 additions & 2 deletions theme_vehicle/models/theme_vehicle.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeVehicle(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_vehicle_post_copy(self, mod):
self.enable_view('website.template_footer_minimalist')
4 changes: 2 additions & 2 deletions theme_yes/models/theme_yes.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeYes(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_yes_post_copy(self, mod):
self.enable_view('website.template_footer_descriptive')
Expand Down
4 changes: 2 additions & 2 deletions theme_zap/models/theme_zap.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from odoo import models


class ThemeZap(models.AbstractModel):
_inherit = 'theme.utils'
class ThemeUtils(models.AbstractModel):
_inherit = ['theme.utils']

def _theme_zap_post_copy(self, mod):
self.enable_view('website.template_header_sales_four')
Expand Down

0 comments on commit 3776161

Please sign in to comment.