Skip to content
Snippets Groups Projects
Commit b278d7ff authored by Fabien Meghazi's avatar Fabien Meghazi
Browse files

Merge pull request #356 from xmo-odoo/scaffold-kwargs

[IMP] add kwargs to scaffolded controller
parents ccdae747 08b11074
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ from openerp import http
class {{ controller }}(http.Controller):
@http.route('/{{ module }}/{{ controller }}', auth='public', website=True)
def index(self):
def index(self, **kw):
return "Hello, world!"
{% if has_model %}
@http.route('/{{ module }}/{{ controller }}/<model("{{ module }}.{{ controller }}"):{{ controller }}>'], type='http', auth='public', website=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment