Add ir_http model to register module for frontend JavaScript translations

This commit is contained in:
Mohamed Eltayar 2025-08-30 19:30:30 +03:00
parent 439f2d3ee3
commit 8b244211bd
1 changed files with 14 additions and 0 deletions

View File

@ -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']