mirror of https://github.com/OCA/web.git
[IMP] web_field_tooltip: Enable translation
Enable translation for tooltip text to support multi-language environments.pull/2977/head
parent
7c2a4eaef6
commit
564ba2f131
|
@ -35,7 +35,7 @@ class IrModelFieldsTooltip(models.Model):
|
||||||
help="Set active to false to hide the Tooltip without removing it.",
|
help="Set active to false to hide the Tooltip without removing it.",
|
||||||
)
|
)
|
||||||
field_name = fields.Char(related="field_id.name")
|
field_name = fields.Char(related="field_id.name")
|
||||||
tooltip_text = fields.Html(required=True)
|
tooltip_text = fields.Html(required=True, translate=True)
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def default_get(self, fields_list):
|
def default_get(self, fields_list):
|
||||||
|
|
Loading…
Reference in New Issue