增加云客户端

This commit is contained in:
Ivan Office
2024-11-08 18:41:02 +08:00
parent be545f3db7
commit 9041a4d74a
38 changed files with 679 additions and 26 deletions

View File

@@ -0,0 +1,25 @@
# -*- 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
# })