16 lines
441 B
Python
16 lines
441 B
Python
from odoo.addons.web.controllers import home as web_home
|
|
from odoo.http import request, route
|
|
|
|
|
|
class WebClient(web_home.Home):
|
|
|
|
@route()
|
|
def web_client(self, s_action=None, **kw):
|
|
response = super().web_client(s_action, **kw)
|
|
if response.status_code == 200:
|
|
response.set_cookie(
|
|
'color_scheme',
|
|
request.env['ir.http'].color_scheme(),
|
|
)
|
|
return response
|