[FIX] ir_model: adapt _inherited_models computation

Computed fields need to always be assigned a value now.

X-original-commit: a5fc616c051b1215c1f2d0425687022a1897299b
This commit is contained in:
Nans Lefebvre
2019-10-11 18:27:30 +00:00
committed by fw-bot
parent 973a575995
commit 212294fe1c
+2
View File
@@ -120,6 +120,8 @@ class IrModel(models.Model):
parent_names = list(self.env[model.model]._inherits)
if parent_names:
model.inherited_model_ids = self.search([('model', 'in', parent_names)])
else:
model.inherited_model_ids = False
@api.depends()
def _in_modules(self):