From 9f2cbb0bbc8a3fe7a5bd2bf89c9de013f9e0dc1a Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sat, 17 Sep 2011 14:58:53 +0200 Subject: [PATCH] fix bzr revid: fp@tinyerp.com-20110917125853-0tw31rpxc8m8i2ke --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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