Replace wrong usage of False by None
issue2512
This commit is contained in:
+1
-2
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user