From bbeb5803b035a934a97d90c6c5e833cafc998d14 Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Thu, 20 Dec 2018 21:51:19 +0000 Subject: [PATCH] publish muk_utils - 12.0 --- muk_utils/models/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/muk_utils/models/base.py b/muk_utils/models/base.py index e543525..6a1f562 100644 --- a/muk_utils/models/base.py +++ b/muk_utils/models/base.py @@ -66,8 +66,8 @@ class Base(models.AbstractModel): @api.model def _search_parents(self, domain=[], order=None): - if not self._parent_store or self._parent_name not in self._fields: - raise TypeError("Model %r does not exist in registry." % name) + if self._parent_name not in self._fields: + raise TypeError("The parent (%s) field does not exist." % self._parent_name) self.check_access_rights('read') if expression.is_false(self, domain): return []