[init/add] generic backend theme
This commit is contained in:
15
muk_web_theme-19/muk_web_dialog/models/ir_http.py
Normal file
15
muk_web_theme-19/muk_web_dialog/models/ir_http.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from odoo import models
|
||||
|
||||
|
||||
class IrHttp(models.AbstractModel):
|
||||
|
||||
_inherit = "ir.http"
|
||||
|
||||
#----------------------------------------------------------
|
||||
# Functions
|
||||
#----------------------------------------------------------
|
||||
|
||||
def session_info(self):
|
||||
result = super().session_info()
|
||||
result['dialog_size'] = self.env.user.dialog_size
|
||||
return result
|
||||
Reference in New Issue
Block a user