23 lines
790 B
Python
Executable File
23 lines
790 B
Python
Executable File
# -*- coding: utf-8 -*-
|
|
# from odoo import http
|
|
|
|
|
|
# class SosMarketing(http.Controller):
|
|
# @http.route('/sos_marketing/sos_marketing', auth='public')
|
|
# def index(self, **kw):
|
|
# return "Hello, world"
|
|
|
|
# @http.route('/sos_marketing/sos_marketing/objects', auth='public')
|
|
# def list(self, **kw):
|
|
# return http.request.render('sos_marketing.listing', {
|
|
# 'root': '/sos_marketing/sos_marketing',
|
|
# 'objects': http.request.env['sos_marketing.sos_marketing'].search([]),
|
|
# })
|
|
|
|
# @http.route('/sos_marketing/sos_marketing/objects/<model("sos_marketing.sos_marketing"):obj>', auth='public')
|
|
# def object(self, obj, **kw):
|
|
# return http.request.render('sos_marketing.object', {
|
|
# 'object': obj
|
|
# })
|
|
|