summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2011-09-17 14:58:53 +0200
committerFabien Pinckaers <fp@tinyerp.com>2011-09-17 14:58:53 +0200
commit9f2cbb0bbc8a3fe7a5bd2bf89c9de013f9e0dc1a (patch)
tree6aea7fac4a7a72e3e79805b3c8ffb01b36efb4ee
parenta2dbd69cd60d6449f7fd2b34f3b48b33a29f4b17 (diff)
fix
bzr revid: fp@tinyerp.com-20110917125853-0tw31rpxc8m8i2ke
-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