[FIX] base: use correct field name

The field is named ttype, not type

closes odoo/odoo#35943

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Yenthe666
2019-08-24 10:43:38 +00:00
parent f6f16f1934
commit 496fc0882d
+1 -1
View File
@@ -832,7 +832,7 @@ class IrTranslation(models.Model):
:return: action definition to open the list of available translations
"""
fields = self.env['ir.model.fields'].search([('model', '=', model_name)])
selection_ids = [field.selection_ids.ids for field in fields if field.type == 'selection']
selection_ids = [field.selection_ids.ids for field in fields if field.ttype == 'selection']
view = self.env.ref("base.view_translation_tree", False) or self.env['ir.ui.view']
return {
'name': _("Technical Translations"),