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.

13 lines
377B

  1. # -*- coding: utf-8 -*-
  2. from odoo import http
  3. from odoo.addons.website.controllers.main import Website
  4. class WebsiteInfo(Website):
  5. @http.route()
  6. def website_info(self):
  7. result = super(WebsiteInfo, self).website_info()
  8. result.qcontext['apps'] = result.qcontext['apps'].filtered(
  9. lambda x: x.name != 'website'
  10. )
  11. return result
上海开阖软件有限公司 沪ICP备12045867号-1