From 05aae800af18f4b5290fdc5d5325be4763de5e40 Mon Sep 17 00:00:00 2001 From: Gorash Date: Mon, 9 Dec 2024 15:49:44 +0100 Subject: [PATCH] [IMP] all/saas~18.1: 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/upgrade-util#171 Community: https://github.com/odoo/odoo/pull/189889 Enterprise: https://github.com/odoo/enterprise/pull/75293 Related: odoo/upgrade#6901 Signed-off-by: Raphael Collet --- src/mail/0.0.0/pre-report-migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mail/0.0.0/pre-report-migration.py b/src/mail/0.0.0/pre-report-migration.py index 9d8b425f..ac7212a6 100644 --- a/src/mail/0.0.0/pre-report-migration.py +++ b/src/mail/0.0.0/pre-report-migration.py @@ -22,7 +22,7 @@ def migrate(cr, version): class MailMessage(models.Model): - _inherit = ["mail.message"] + _inherit = "mail.message" _module = "mail" @model_cr