9 lines
358 B
Python
Executable File
9 lines
358 B
Python
Executable File
from odoo import http
|
|
from odoo.http import request
|
|
from odoo import SUPERUSER_ID
|
|
|
|
class timer(http.Controller):
|
|
@http.route(['/timer/render'], type='json', auth='public', website=True , csrf=False, cache=300)
|
|
def render_timer_template(self):
|
|
values={}
|
|
return request.env.ref("snippet_style_2.snippet_style_2_template").render(values) |