[IMP] Improvements

bzr revid: pso@tinyerp.com-20120828125623-1nq457mpd1dijq4j
This commit is contained in:
pso (OpenERP) 2012-08-28 18:26:23 +05:30
parent 00a4560963
commit 3abb393247
1 changed files with 1 additions and 1 deletions

View File

@ -557,7 +557,7 @@ class res_config_settings(osv.osv_memory):
""" Override name_get method to return an appropriate configuration wizard
name, and not the generated name."""
if not len(ids):
if not ids:
return []
# name_get may receive int id instead of an id list
if isinstance(ids, (int, long)):