summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/stock/stock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/stock.py b/addons/stock/stock.py
index d6178d6182a..261bc265480 100644
--- a/addons/stock/stock.py
+++ b/addons/stock/stock.py
@@ -1561,7 +1561,7 @@ class stock_move(osv.osv):
}
def _check_location(self, cr, uid, ids, context=None):
for record in self.browse(cr, uid, ids, context=context or {}):
- if state=='done' and (record.location_dest_id.usage == 'view' or record.location_id.usage == 'view'):
+ if (record.state=='done') and (record.location_dest_id.usage == 'view' or record.location_id.usage == 'view'):
return False
return True