[IMP] base: OpenERP to Odoo
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user