diff options
| author | Jeremy Kersten <jke@odoo.com> | 2019-06-07 06:22:41 +0000 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-06-08 13:53:57 +0000 |
| commit | 521f7d36c1ff929ea52e9ed6fd4170bd3b968b19 (patch) | |
| tree | 87aa091eec0fa7960a5e6c11aafa30c1b77eb8af /addons/web/static/src/js/fields/basic_fields.js | |
| parent | f167ae7d6e4298474293ede5cbef97d98a0883cc (diff) | |
[IMP] odoo: ignore unsupported args from controller
Before this commit, call a controller defined as:
```
@http.route('/route', type='http', auth='public')
def controller_func(self, foo):
do_it()
```
and called with url like /route?foo=1&bar=2
will crash with an exception:
`TypeError: controller_func() got an unexpected keyword argument 'bar'`
Now, we remove the extra parameters if the controller doesn't support it.
This case is not uncommon, you can easily arrive in this case with utm or
debug as extra parameter.
closes odoo/odoo#33962
Signed-off-by: Christophe Simonis <chs@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
