mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] orm/all: Make _name or _inherit mandatory
This is a request following the revert of the use of class names
(concerning the python inheritance and typing project)
closes odoo/design-themes#1040
X-original-commit: 2263661435
Related: odoo/odoo#191963
Related: odoo/enterprise#76269
Signed-off-by: Raphael Collet <rco@odoo.com>
This commit is contained in:
@@ -5,7 +5,7 @@ from odoo.http import request
|
||||
|
||||
|
||||
class IrHttp(models.AbstractModel):
|
||||
_inherit = ['ir.http']
|
||||
_inherit = 'ir.http'
|
||||
|
||||
@classmethod
|
||||
def _pre_dispatch(cls, rule, args):
|
||||
|
||||
@@ -4,7 +4,7 @@ from odoo import api, models
|
||||
|
||||
|
||||
class Website(models.Model):
|
||||
_inherit = ['website']
|
||||
_inherit = 'website'
|
||||
|
||||
@api.model
|
||||
def get_test_themes_websites_theme_preview(self):
|
||||
|
||||
Reference in New Issue
Block a user