Files

22 lines
825 B
Python
Raw Permalink Normal View History

2026-07-01 14:41:49 +07:00
# from odoo import http
# class CustomStyleForm(http.Controller):
# @http.route('/custom_style_form/custom_style_form', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/custom_style_form/custom_style_form/objects', auth='public')
# def list(self, **kw):
# return http.request.render('custom_style_form.listing', {
# 'root': '/custom_style_form/custom_style_form',
# 'objects': http.request.env['custom_style_form.custom_style_form'].search([]),
# })
# @http.route('/custom_style_form/custom_style_form/objects/<model("custom_style_form.custom_style_form"):obj>', auth='public')
# def object(self, obj, **kw):
# return http.request.render('custom_style_form.object', {
# 'object': obj
# })