Skip to content

Commit

Permalink
[IMP] orm/all: Make _name or _inherit mandatory
Browse files Browse the repository at this point in the history
This is a request following the revert of the use of class names
(concerning the python inheritance and typing project)

closes #1040

X-original-commit: 2263661
Related: odoo/odoo#191963
Related: odoo/enterprise#76269
Signed-off-by: Raphael Collet <[email protected]>
  • Loading branch information
Gorash authored and rco-odoo committed Dec 28, 2024
1 parent 653298d commit 89ef56b
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion test_themes/models/ir_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


class IrHttp(models.AbstractModel):
_inherit = ['ir.http']
_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
2 changes: 1 addition & 1 deletion theme_anelusia/models/theme_anelusia.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_anelusia_post_copy(self, mod):
self.enable_view('website.template_footer_headline')
2 changes: 1 addition & 1 deletion theme_artists/models/theme_artists.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_artists_post_copy(self, mod):
self.enable_view('website.template_header_vertical')
Expand Down
2 changes: 1 addition & 1 deletion theme_avantgarde/models/theme_avantgarde.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_avantgarde_post_copy(self, mod):
self.enable_view('website.template_header_hamburger')
Expand Down
2 changes: 1 addition & 1 deletion theme_aviato/models/theme_aviato.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_aviato_post_copy(self, mod):
self.enable_view('website.template_footer_contact')
Expand Down
2 changes: 1 addition & 1 deletion theme_beauty/models/theme_beauty.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_beauty_post_copy(self, mod):
self.enable_view('website.footer_custom')
2 changes: 1 addition & 1 deletion theme_bewise/models/theme_bewise.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_bewise_post_copy(self, mod):
self.enable_view('website.template_footer_headline')
Expand Down
2 changes: 1 addition & 1 deletion theme_bistro/models/theme_bistro.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_bistro_post_copy(self, mod):
self.enable_view('website.template_header_vertical')
Expand Down
2 changes: 1 addition & 1 deletion theme_bookstore/models/theme_bookstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_bookstore_post_copy(self, mod):
self.enable_view('website.template_header_search')
2 changes: 1 addition & 1 deletion theme_buzzy/models/theme_buzzy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_buzzy_post_copy(self, mod):
self.enable_view('website.template_footer_headline')
Expand Down
2 changes: 1 addition & 1 deletion theme_clean/models/theme_clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_clean_post_copy(self, mod):
self.enable_view('website.template_header_default')
Expand Down
2 changes: 1 addition & 1 deletion theme_cobalt/models/theme_cobalt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_cobalt_post_copy(self, mod):
self.enable_asset("website.ripple_effect_scss")
Expand Down
2 changes: 1 addition & 1 deletion theme_common/models/theme_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_common_post_copy(self, mod):
# Reset all default color when switching themes
Expand Down
2 changes: 1 addition & 1 deletion theme_enark/models/theme_enark.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_enark_post_copy(self, mod):
self.enable_view('website.template_footer_descriptive')
Expand Down
2 changes: 1 addition & 1 deletion theme_graphene/models/theme_graphene.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_graphene_post_copy(self, mod):
self.enable_view('website.template_header_stretch')
Expand Down
2 changes: 1 addition & 1 deletion theme_kea/models/theme_kea.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_kea_post_copy(self, mod):
self.enable_view('website.template_footer_minimalist')
2 changes: 1 addition & 1 deletion theme_kiddo/models/theme_kiddo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_kiddo_post_copy(self, mod):
self.enable_view('website.template_header_default_align_right')
Expand Down
2 changes: 1 addition & 1 deletion theme_loftspace/models/theme_loftspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_loftspace_post_copy(self, mod):
self.enable_view('website.template_header_search')
2 changes: 1 addition & 1 deletion theme_monglia/models/theme_monglia.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_monglia_post_copy(self, mod):
self.enable_view('website.template_footer_minimalist')
2 changes: 1 addition & 1 deletion theme_nano/models/theme_nano.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_nano_post_copy(self, mod):

Expand Down
2 changes: 1 addition & 1 deletion theme_notes/models/theme_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_notes_post_copy(self, mod):
self.enable_view('website.template_footer_descriptive')
2 changes: 1 addition & 1 deletion theme_odoo_experts/models/theme_odoo_experts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_odoo_experts_post_copy(self, mod):
self.enable_view('website.template_footer_contact')
2 changes: 1 addition & 1 deletion theme_orchid/models/theme_orchid.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_orchid_post_copy(self, mod):
self.enable_view('website.template_header_default')
Expand Down
2 changes: 1 addition & 1 deletion theme_paptic/models/theme_paptic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_paptic_post_copy(self, mod):
self.enable_asset("website.ripple_effect_scss")
Expand Down
2 changes: 1 addition & 1 deletion theme_real_estate/models/theme_real_estate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_real_estate_post_copy(self, mod):
self.enable_asset("website.ripple_effect_scss")
Expand Down
2 changes: 1 addition & 1 deletion theme_test_custo/models/theme_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


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

@property
def _header_templates(self):
Expand Down
2 changes: 1 addition & 1 deletion theme_treehouse/models/theme_treehouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_treehouse_post_copy(self, mod):
self.disable_view('website.header_visibility_standard')
Expand Down
2 changes: 1 addition & 1 deletion theme_vehicle/models/theme_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_vehicle_post_copy(self, mod):
self.enable_view('website.template_footer_minimalist')
2 changes: 1 addition & 1 deletion theme_yes/models/theme_yes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

def _theme_yes_post_copy(self, mod):
self.enable_view('website.template_footer_descriptive')
Expand Down
2 changes: 1 addition & 1 deletion theme_zap/models/theme_zap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


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

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

0 comments on commit 89ef56b

Please sign in to comment.