controllers.py 879 B

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