fix adding operations

This commit is contained in:
?ngel ?lvarez 2018-09-25 11:58:35 +02:00
parent 099cf3e7a7
commit 1143c9ce40
1 changed files with 2 additions and 2 deletions

View File

@ -350,9 +350,9 @@ class Production(metaclass=PoolMeta):
if not self.route:
return
self.operations = []
self.operations = tuple()
for route_operation in self.route.operations:
self.operations.append(self._operation(route_operation))
self.operations += (self._operation(route_operation), )
def _operation(self, route_operation):
Operation = Pool().get('production.operation')