From 4af83ce06be20172d06dbdd692cda864a6e64891 Mon Sep 17 00:00:00 2001 From: carlosgalvez-nan Date: Wed, 11 Mar 2020 09:38:51 +0100 Subject: [PATCH] fix on_change_route #040326 --- operation.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/operation.py b/operation.py index 663c85f..302283f 100644 --- a/operation.py +++ b/operation.py @@ -246,9 +246,7 @@ class Production(metaclass=PoolMeta): @fields.depends('route', 'operations') def on_change_route(self): Operation = Pool().get('production.operation') - delete_operations = [x for x in self.operations] - Operation.delete(delete_operations) - + self.operations = None operations = [] if self.route: for operation in self.route.operations: