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

[IMP] add kwargs to scaffolded controller
This commit is contained in:
Fabien Meghazi 2014-06-10 15:44:30 +02:00
commit b278d7ff5d
1 changed files with 1 additions and 1 deletions

View File

@ -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)