fix adding operations
This commit is contained in:
parent
099cf3e7a7
commit
1143c9ce40
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue