summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/lunch/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/lunch/controllers/main.py b/addons/lunch/controllers/main.py
index 681f8133c1d..5dc9b509bf1 100644
--- a/addons/lunch/controllers/main.py
+++ b/addons/lunch/controllers/main.py
@@ -63,7 +63,7 @@ class LunchController(http.Controller):
return {'message': request.env['ir.qweb'].render('lunch.lunch_payment_dialog', {})}
@http.route('/lunch/user_location_set', type='json', auth='user')
- def set_user_location(self, location_id, user_id=None):
+ def set_user_location(self, location_id=None, user_id=None):
self._check_user_impersonification(user_id)
user = request.env['res.users'].browse(user_id) if user_id else request.env.user