From 81bc5f3c0a388a8fbc1d36d58612bd379b99367d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=E1=BA=A1i=20D=C6=B0=C6=A1ng?= Date: Wed, 22 May 2024 11:33:11 +0700 Subject: [PATCH] [IMP] openupgrade_framework v17 -This commit remove unecessary patch --- .../odoo/addons/base/models/ir_model.py | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/openupgrade_framework/odoo_patch/odoo/addons/base/models/ir_model.py b/openupgrade_framework/odoo_patch/odoo/addons/base/models/ir_model.py index cdd8d85e0a99..01ba183f813f 100644 --- a/openupgrade_framework/odoo_patch/odoo/addons/base/models/ir_model.py +++ b/openupgrade_framework/odoo_patch/odoo/addons/base/models/ir_model.py @@ -3,13 +3,11 @@ from openupgradelib import openupgrade from odoo import api, models -from odoo.tools import mute_logger from odoo.addons.base.models.ir_model import ( IrModel, IrModelData, IrModelFields, - IrModelRelation, IrModelSelection, ) @@ -64,29 +62,6 @@ def _module_data_uninstall(self, modules_to_remove): IrModelData._module_data_uninstall = _module_data_uninstall -@api.model -def _process_end(self, modules): - """Don't warn about upgrade conventions from Odoo - ('fields should be explicitly removed by an upgrade script') - """ - with mute_logger("odoo.addons.base.models.ir_model"): - return IrModelData._process_end._original_method(self, modules) - - -_process_end._original_method = IrModelData._process_end -IrModelData._process_end = _process_end - - -def _module_data_uninstall(self): - """Don't delete many2many relation tables. Only unlink the - ir.model.relation record itself. - """ - self.unlink() - - -IrModelRelation._module_data_uninstall = _module_data_uninstall - - def _process_ondelete(self): """Don't break on missing models when deleting their selection fields""" to_process = self.browse([])