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.

14 lines
526 B

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