diff --git a/muk_utils/__manifest__.py b/muk_utils/__manifest__.py index 23facde..32f6d68 100644 --- a/muk_utils/__manifest__.py +++ b/muk_utils/__manifest__.py @@ -19,7 +19,7 @@ { "name": "MuK Utils", "summary": """Utility Features""", - "version": '12.0.1.1.21', + "version": '12.0.1.1.22', "category": 'Extra Tools', "license": "AGPL-3", "author": "MuK IT", diff --git a/muk_utils/models/mixins_hierarchy.py b/muk_utils/models/mixins_hierarchy.py index acfefa3..92e86ef 100644 --- a/muk_utils/models/mixins_hierarchy.py +++ b/muk_utils/models/mixins_hierarchy.py @@ -100,6 +100,7 @@ class Hierarchy(models.AbstractModel): res = super(Hierarchy, self).write(vals) if self._rec_name_fallback() in vals: domain = [('id', 'child_of', self.ids)] - self.search(domain).modified(['parent_path']) + records = self.sudo().search(domain) + records.modified(['parent_path']) return res \ No newline at end of file