Skip to content

Commit

Permalink
[FIX] stock_pack_operation: wrong conversion in multi api
Browse files Browse the repository at this point in the history
Tested: compute_sudo on the field does not work
  • Loading branch information
Gorash committed Jun 21, 2017
1 parent 8df0a2a commit c6e5d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/stock/models/stock_pack_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def _get_remaining_qty(self):
@api.multi
def _compute_location_description(self):
for operation, operation_sudo in zip(self, self.sudo()):
self.from_loc = '%s%s' % (operation_sudo.location_id.name, self.product_id and operation_sudo.package_id.name or '')
self.to_loc = '%s%s' % (operation_sudo.location_dest_id.name, operation_sudo.result_package_id.name or '')
operation.from_loc = '%s%s' % (operation_sudo.location_id.name, self.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
def _compute_lots_visible(self):
Expand Down

0 comments on commit c6e5d7b

Please sign in to comment.