recompute parent_level if a child change of parent

This commit is contained in:
Florian da Costa
2015-10-29 09:49:44 +01:00
committed by David Beal
parent f21153f294
commit 7fba14c041

View File

@@ -27,9 +27,11 @@ class MrpWorkcenter(orm.Model):
def _get_workcenter_ids_to_recompute_level(self, cr, uid, ids, context=None):
return self.search(cr, uid, [
'|',
'|',
('parent_id', 'child_of', ids),
('id', 'in', ids),
('child_ids', 'in', ids),
])
def _get_parent_ids(self, workcenter):