odoo_dev 开发培训作业:图书管理系统
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

21 linhas
649B

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