mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
26 lines
840 B
Python
26 lines
840 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# from odoo import http
|
|
# from odoo.addons.portal.controllers.portal import CustomerPortal
|
|
#
|
|
#
|
|
# class appCustomerPortal(CustomerPortal):
|
|
#
|
|
# # Controler sample
|
|
# @http.route('/my/webclient/locale/<string:lang>', type='http', auth="none")
|
|
# def index(self, **kw):
|
|
# return "Hello, world"
|
|
#
|
|
# @http.route('/default/default/objects/', auth='public')
|
|
# def list(self, **kw):
|
|
# return http.request.render('default.listing', {
|
|
# 'root': '/default/default',
|
|
# 'objects': http.request.env['default.default'].search([]),
|
|
# })
|
|
#
|
|
# @http.route('/default/default/objects/<model("default.default"):obj>/', auth='public')
|
|
# def object(self, obj, **kw):
|
|
# return http.request.render('default.object', {
|
|
# 'object': obj
|
|
# })
|