Last active
July 19, 2018 04:28
-
-
Save akhmadkresna/1f32f29465780e771a48d1f8f44c3a39 to your computer and use it in GitHub Desktop.
odoo route
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import odoo.http as http | |
class your_class(http.Controller): | |
@http.route('/custom/url', type='http', auth='user', website=True) | |
def show_custom_webpage(self, **kw): | |
# render qweb template and parse another parameter data type dictionary, so we have 2 parameter in render method. | |
return http.request.render('your_module.new_web_page', {}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment