summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwapnesh Shah <swapneshshah111@gmail.com>2019-10-06 17:50:38 +0000
committerGitHub <noreply@github.com>2019-10-06 17:50:38 +0000
commit147e61a3bcfe4805be75bab90c265479eded9ec2 (patch)
treeed3a96a9b40ae9821057090913adc49d2c26f095
parenta05f4b7589d23772adbd55caab56319233a5879d (diff)
[FIX] lunch: Add required argument location_id
This commit fixes Tracbacki coming when the user removes a location on New order. It is because of location_id was not passed on Route. closes odoo/odoo#38023 Signed-off-by: Romain Libert (rli) <rli@odoo.com>
-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