Browse Source

publish muk_utils - 12.0

pull/30/head
MuK IT GmbH 6 years ago
parent
commit
fa19b85a05
  1. 2
      muk_utils/__manifest__.py
  2. 2
      muk_utils/models/mixins_hierarchy.py

2
muk_utils/__manifest__.py

@ -19,7 +19,7 @@
{ {
"name": "MuK Utils", "name": "MuK Utils",
"summary": """Utility Features""", "summary": """Utility Features""",
"version": '12.0.1.6.15',
"version": '12.0.1.6.16',
"category": 'Extra Tools', "category": 'Extra Tools',
"license": "AGPL-3", "license": "AGPL-3",
"author": "MuK IT", "author": "MuK IT",

2
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] paths = [list(map(int, rec.parent_path.split('/')[:-1])) for rec in records]
ids = paths and set(functools.reduce(operator.concat, paths)) or [] ids = paths and set(functools.reduce(operator.concat, paths)) or []
model_without_path = self.with_context(**{self._name_path_context: False}) 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()) data = dict(filtered_records.name_get())
for record in records: for record in records:
path_names = [""] path_names = [""]

Loading…
Cancel
Save