[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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user