Skip to content

Commit

Permalink
[FIX] stock: change wrong variable name
Browse files Browse the repository at this point in the history
bzr revid: mat@openerp.com-20130909091837-jkzfijspdyw2g79y
  • Loading branch information
mart-e committed Sep 9, 2013
1 parent 63a2e35 commit 1ae3118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/stock/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2955,8 +2955,8 @@ def _default_lot_input_stock_id(self, cr, uid, context=None):

def _default_lot_output_id(self, cr, uid, context=None):
try:
lot_input_stock_model, lot_input_stock_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'stock', 'stock_location_output')
self.pool.get('stock.location').check_access_rule(cr, uid, [lot_input_stock_id], 'read', context=context)
lot_output_model, lot_output_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'stock', 'stock_location_output')
self.pool.get('stock.location').check_access_rule(cr, uid, [lot_output_id], 'read', context=context)
except (ValueError, orm.except_orm):
# the user does not have read access on the location or it does not exists
lot_output_id = False
Expand Down

0 comments on commit 1ae3118

Please sign in to comment.