update app_common 15

This commit is contained in:
Chill
2023-09-28 11:55:36 +08:00
parent bac7284354
commit 0fb33974f7
15 changed files with 260 additions and 92 deletions

View File

@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
from odoo.http import request
class IrHttp(models.AbstractModel):
_inherit = 'ir.http'
def session_info(self):
result = super(IrHttp, self).session_info()
result['ua_type'] = self.get_ua_type()
return result