[MIG] base_comment_template: Migration to 15.0

TT35696
This commit is contained in:
Víctor Martínez
2022-09-13 16:43:26 +02:00
committed by Jesús Alan Ramos Rodríguez
parent 61973247ec
commit 1a9d3178f1
23 changed files with 106 additions and 330 deletions

View File

@@ -14,7 +14,7 @@ class IrModel(models.Model):
)
def _reflect_model_params(self, model):
vals = super(IrModel, self)._reflect_model_params(model)
vals = super()._reflect_model_params(model)
vals["is_comment_template"] = issubclass(
type(model), self.pool["comment.template"]
)
@@ -22,7 +22,7 @@ class IrModel(models.Model):
@api.model
def _instanciate(self, model_data):
model_class = super(IrModel, self)._instanciate(model_data)
model_class = super()._instanciate(model_data)
if (
model_data.get("is_comment_template")
and model_class._name != "comment.template"