[FIX] stock: fix conversion to multi of _compute_location_description

Oversight of 8df0a2a98e and
c6e5d7b004.

opw-748404
This commit is contained in:
Joren Van Onder
2017-06-21 10:27:39 -07:00
parent 6981320d01
commit 10c6908c63
+1 -1
View File
@@ -113,7 +113,7 @@ class PackOperation(models.Model):
@api.multi
def _compute_location_description(self):
for operation, operation_sudo in zip(self, self.sudo()):
operation.from_loc = '%s%s' % (operation_sudo.location_id.name, self.product_id and operation_sudo.package_id.name or '')
operation.from_loc = '%s%s' % (operation_sudo.location_id.name, operation.product_id and operation_sudo.package_id.name or '')
operation.to_loc = '%s%s' % (operation_sudo.location_dest_id.name, operation_sudo.result_package_id.name or '')
@api.one