odoo_dev 开发培训作业:图书管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
385B

  1. from odoo import http
  2. from odoo.http import request
  3. class Hello(http.Controller):
  4. @http.route('/helloworld', auth="public", website=True)
  5. def helloworld(self, **kwargs):
  6. return request.render('library_website.helloworld')
  7. @http.route('/hellocms/<page>', auth='public', website=True)
  8. def hello(self, page, **kwargs):
  9. return http.request.render(page)
上海开阖软件有限公司 沪ICP备12045867号-1