odoo_dev 开发培训作业:图书管理系统
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

14 行
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