Add ir_http model to register module for frontend JavaScript translations
This commit is contained in:
parent
439f2d3ee3
commit
8b244211bd
|
|
@ -0,0 +1,14 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class IrHttp(models.AbstractModel):
|
||||
_inherit = 'ir.http'
|
||||
|
||||
@classmethod
|
||||
def _get_translation_frontend_modules_name(cls):
|
||||
"""Register module for frontend JavaScript translations."""
|
||||
modules = super()._get_translation_frontend_modules_name()
|
||||
return modules + ['fims_general_search_tree_view']
|
||||
Loading…
Reference in New Issue