22 lines
659 B
Python
22 lines
659 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import api, models
|
|
from odoo.http import request
|
|
|
|
class Http(models.AbstractModel):
|
|
_inherit = 'ir.http'
|
|
|
|
@api.model
|
|
def get_frontend_session_info_sign(self):
|
|
frontend_session_info = super().get_frontend_session_info()
|
|
frontend_session_info.update({
|
|
'user_context': request.env.context
|
|
})
|
|
return frontend_session_info
|
|
|
|
@classmethod
|
|
def _get_translation_frontend_modules_name(cls):
|
|
mods = super(Http, cls)._get_translation_frontend_modules_name()
|
|
return mods + ['sign']
|