Replace wrong usage of False by None

issue2512
This commit is contained in:
Cédric Krier
2012-03-27 10:44:07 +02:00
parent d7c3e113d7
commit d4592cfd4b
+1 -2
View File
@@ -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()