mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
recompute parent_level if a child change of parent
This commit is contained in:
committed by
David Beal
parent
f21153f294
commit
7fba14c041
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user