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.

15 lines
556 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. import openerp.http as http
  5. from openerp.http import request
  6. class HelpOnlineController(http.Controller):
  7. @http.route('/help_online/build_url', type='json', auth='user')
  8. def build_url(self, model, view_type, domain=None, context=None):
  9. help_online_model = request.env['help.online']
  10. return help_online_model.get_page_url(
  11. model, view_type, domain=domain, context=context)