parent
ce90f883cb
commit
4af83ce06b
|
@ -246,9 +246,7 @@ class Production(metaclass=PoolMeta):
|
||||||
@fields.depends('route', 'operations')
|
@fields.depends('route', 'operations')
|
||||||
def on_change_route(self):
|
def on_change_route(self):
|
||||||
Operation = Pool().get('production.operation')
|
Operation = Pool().get('production.operation')
|
||||||
delete_operations = [x for x in self.operations]
|
self.operations = None
|
||||||
Operation.delete(delete_operations)
|
|
||||||
|
|
||||||
operations = []
|
operations = []
|
||||||
if self.route:
|
if self.route:
|
||||||
for operation in self.route.operations:
|
for operation in self.route.operations:
|
||||||
|
|
Loading…
Reference in New Issue