diff --git a/muk_utils/__manifest__.py b/muk_utils/__manifest__.py index 6c6f962..7ac5ad8 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.6.15', + "version": '12.0.1.6.16', "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 2832100..3ba620e 100644 --- a/muk_utils/models/mixins_hierarchy.py +++ b/muk_utils/models/mixins_hierarchy.py @@ -107,7 +107,7 @@ class Hierarchy(models.AbstractModel): paths = [list(map(int, rec.parent_path.split('/')[:-1])) for rec in records] ids = paths and set(functools.reduce(operator.concat, paths)) or [] model_without_path = self.with_context(**{self._name_path_context: False}) - filtered_records = model_without_path._filter_access('read').browse(ids) + filtered_records = model_without_path.browse(ids)._filter_access('read') data = dict(filtered_records.name_get()) for record in records: path_names = [""]