bzr revid: fp@tinyerp.com-20110917125853-0tw31rpxc8m8i2ke
This commit is contained in:
Fabien Pinckaers
2011-09-17 14:58:53 +02:00
parent a2dbd69cd6
commit 9f2cbb0bbc
+1 -1
View File
@@ -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