controllers.py 984 B

1234567891011121314151617181920
  1. # -*- coding: utf-8 -*-
  2. from openerp import http
  3. # class VariantsByCompanyReport(http.Controller):
  4. # @http.route('/variants_by_company_report/variants_by_company_report/', auth='public')
  5. # def index(self, **kw):
  6. # return "Hello, world"
  7. # @http.route('/variants_by_company_report/variants_by_company_report/objects/', auth='public')
  8. # def list(self, **kw):
  9. # return http.request.render('variants_by_company_report.listing', {
  10. # 'root': '/variants_by_company_report/variants_by_company_report',
  11. # 'objects': http.request.env['variants_by_company_report.variants_by_company_report'].search([]),
  12. # })
  13. # @http.route('/variants_by_company_report/variants_by_company_report/objects/<model("variants_by_company_report.variants_by_company_report"):obj>/', auth='public')
  14. # def object(self, obj, **kw):
  15. # return http.request.render('variants_by_company_report.object', {
  16. # 'object': obj
  17. # })