You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
517 B

# -*- coding: utf-8 -*-
from odoo import http
from odoo.http import request
class SnippetVideoBg(http.Controller):
@http.route('/set_video_id', type='http', auth="user", methods=['POST'], website=True)
def index(self, **kw):
"""
Here set the system param video id.
:param kw:
:return:
"""
video_id = kw.get('id')
request.env['ir.config_parameter'].set_param(
'video_id', video_id) if video_id else ''
return request.redirect('/')