From d4592cfd4bc30cbd49e6dbf13ba7910ea8ba7b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 27 Mar 2012 10:44:07 +0200 Subject: [PATCH] Replace wrong usage of False by None issue2512 --- inventory.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inventory.py b/inventory.py index 243708fdbf..3bc61434a7 100644 --- a/inventory.py +++ b/inventory.py @@ -25,10 +25,9 @@ class CreateInventoriesStart(ModelView): location_ids = location_obj.search(self.lost_found.domain) if len(location_ids) == 1: return location_ids[0] - return False def default_company(self): - return Transaction().context.get('company') or False + return Transaction().context.get('company') CreateInventoriesStart()