[IMP] base: OpenERP to Odoo

This commit is contained in:
Martin Trigaux
2015-06-26 11:11:44 +02:00
parent 617cfd7dc8
commit a15d36fe6e
+1 -1
View File
@@ -394,7 +394,7 @@ class ir_translation(osv.osv):
domain = ['&', ('res_id', '=', id), ('name', '=like', model + ',%')]
langs_ids = self.pool.get('res.lang').search(cr, uid, [('code', '!=', 'en_US')], context=context)
if not langs_ids:
raise UserError(_("Translation features are unavailable until you install an extra OpenERP translation."))
raise UserError(_("Translation features are unavailable until you install an extra Odoo translation."))
langs = [lg.code for lg in self.pool.get('res.lang').browse(cr, uid, langs_ids, context=context)]
main_lang = 'en_US'
translatable_fields = []