'Return the translations of records.
:param name: a string defined as "<model_name>,<field_name>"
:param tt: the type of translation (should always be "model")
:param lang: the language code
:param ids: the ids of the given records'

@api.model
def _get_ids(self, name, tt, lang, ids):

    translations = dict.fromkeys(ids, False)
    if ids:
        self._cr.execute('SELECT    res_id,    value    FROM    ir_translation\n                                                                                                                                WHERE    lang=%s    AND    type=%s    AND    name=%s    AND    res_id    IN    %s', (lang, tt, name, tuple(ids)))
        for (res_id, value) in self._cr.fetchall():
            translations[res_id] = value
    return translations
