[FIX] base: moving the old timezone formats at the end of selection list to avoid confusing users

lp bug: https://launchpad.net/bugs/1086728 fixed

bzr revid: qdp-launchpad@openerp.com-20130515112536-j5eitvgk8tznhe5i
This commit is contained in:
Quentin (OpenERP)
2013-05-15 13:25:36 +02:00
+2 -1
View File
@@ -74,7 +74,8 @@ class format_address(object):
def _tz_get(self,cr,uid, context=None):
return [(x, x) for x in pytz.all_timezones]
# put POSIX 'Etc/*' entries at the end to avoid confusing users - see bug 1086728
return [(tz,tz) for tz in sorted(pytz.all_timezones, key=lambda tz: tz if not tz.startswith('Etc/') else '_')]
class res_partner_category(osv.osv):