From 147e61a3bcfe4805be75bab90c265479eded9ec2 Mon Sep 17 00:00:00 2001 From: Swapnesh Shah Date: Sun, 6 Oct 2019 17:50:38 +0000 Subject: [PATCH] [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) --- addons/lunch/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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