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