[IMP] add kwargs to scaffolded controller so ?debug does not blow up by default

This commit is contained in:
Xavier Morel 2014-06-05 12:32:12 +02:00
parent 0eb602dd61
commit 08b1107413
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)