Browse Source

publish muk_utils - 12.0

pull/9/head
MuK IT GmbH 6 years ago
parent
commit
666f7ae7a5
  1. 2
      muk_utils/__manifest__.py
  2. 4
      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.1.22',
"version": '12.0.1.1.23',
"category": 'Extra Tools', "category": 'Extra Tools',
"license": "AGPL-3", "license": "AGPL-3",
"author": "MuK IT", "author": "MuK IT",

4
muk_utils/models/mixins_hierarchy.py

@ -78,10 +78,10 @@ class Hierarchy(models.AbstractModel):
for id in reversed(list(map(int, record.parent_path.split('/')[:-1]))): for id in reversed(list(map(int, record.parent_path.split('/')[:-1]))):
if id not in data: if id not in data:
break break
path_names.append(data[id][0])
path_names.append(data[id])
path_json.append({ path_json.append({
'model': record._name, 'model': record._name,
'name': data[id][0],
'name': data[id],
'id': record.id, 'id': record.id,
}) })
path_names.reverse() path_names.reverse()

Loading…
Cancel
Save