[FIX] User / Preferences should always display translatable languages.

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

bzr revid: jvo@tinyerp.com-20100512065331-2kwk9yprxxkv70ba
This commit is contained in:
Jay (Open ERP)
2010-05-12 12:23:31 +05:30
parent 97f2647309
commit e2ec26683e
+2 -1
View File
@@ -106,10 +106,11 @@ roles()
def _lang_get(self, cr, uid, context={}):
obj = self.pool.get('res.lang')
ids = obj.search(cr, uid, [])
ids = obj.search(cr, uid, [('translatable','=',True)])
res = obj.read(cr, uid, ids, ['code', 'name'], context)
res = [(r['code'], r['name']) for r in res]
return res
def _tz_get(self,cr,uid, context={}):
return [(x, x) for x in pytz.all_timezones]