Search relational models by name in model graph

Since a4f347999b83 the name of the model is stored in the name field.
This commit is contained in:
Cédric Krier committed 2024-12-23 15:29:00 +01:00
1 parent 5229eaf4dc
commit 7ac5427f1c
1 file changed
+1 -1
+1 -1
View File
@@ -1676,7 +1676,7 @@ class ModelGraph(Report):
sub_models.add(field.relation)
if sub_models:
model_ids = Model.search([
('model', 'in', list(sub_models)),
('name', 'in', list(sub_models)),
])
sub_models = Model.browse(model_ids)
if set(sub_models) != set(models):