diff --git a/muk_utils/__manifest__.py b/muk_utils/__manifest__.py index 56f1e8c..c436591 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.23', + "version": '12.0.1.4.0', "category": 'Extra Tools', "license": "AGPL-3", "author": "MuK IT", diff --git a/muk_utils/doc/changelog.rst b/muk_utils/doc/changelog.rst index c845105..a7e6288 100644 --- a/muk_utils/doc/changelog.rst +++ b/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` ------- diff --git a/muk_utils/models/mixins_hierarchy.py b/muk_utils/models/mixins_hierarchy.py index 4cf9748..4715993 100644 --- a/muk_utils/models/mixins_hierarchy.py +++ b/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: - domain = [('id', 'child_of', self.ids)] - records = self.sudo().search(domain) - records.modified(['parent_path']) - return res + 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) \ No newline at end of file