[IMP] add kwargs to scaffolded controller so ?debug does not blow up by default
This commit is contained in:
parent
0eb602dd61
commit
08b1107413
|
@ -3,7 +3,7 @@ from openerp import http
|
||||||
|
|
||||||
class {{ controller }}(http.Controller):
|
class {{ controller }}(http.Controller):
|
||||||
@http.route('/{{ module }}/{{ controller }}', auth='public', website=True)
|
@http.route('/{{ module }}/{{ controller }}', auth='public', website=True)
|
||||||
def index(self):
|
def index(self, **kw):
|
||||||
return "Hello, world!"
|
return "Hello, world!"
|
||||||
{% if has_model %}
|
{% if has_model %}
|
||||||
@http.route('/{{ module }}/{{ controller }}/<model("{{ module }}.{{ controller }}"):{{ controller }}>'], type='http', auth='public', website=True)
|
@http.route('/{{ module }}/{{ controller }}/<model("{{ module }}.{{ controller }}"):{{ controller }}>'], type='http', auth='public', website=True)
|
||||||
|
|
Loading…
Reference in New Issue