Browse Source

publish muk_utils - 12.0

pull/9/head
MuK IT GmbH 6 years ago
parent
commit
18db7584b5
  1. 2
      muk_utils/__manifest__.py
  2. 15
      muk_utils/doc/changelog.rst
  3. 6
      muk_utils/models/mixins_hierarchy.py

2
muk_utils/__manifest__.py

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

15
muk_utils/doc/changelog.rst

@ -1,3 +1,18 @@
`1.4.0`
-------
- Added Hierarchy Mixin
`1.3.0`
-------
- Added SCSS Editor
`1.2.0`
-------
- Added Group Mixin
`1.1.0`
-------

6
muk_utils/models/mixins_hierarchy.py

@ -97,10 +97,14 @@ class Hierarchy(models.AbstractModel):
@api.multi
def write(self, vals):
res = super(Hierarchy, self).write(vals)
if self._rec_name_fallback() in vals:
with self.env.norecompute():
res = super(Hierarchy, self).write(vals)
domain = [('id', 'child_of', self.ids)]
records = self.sudo().search(domain)
records.modified(['parent_path'])
if self.env.recompute and self.env.context.get('recompute', True):
records.recompute()
return res
return super(Hierarchy, self).write(vals)
Loading…
Cancel
Save