From 3e37cb92c87e0d9db3c6034df8b8bbe717520678 Mon Sep 17 00:00:00 2001 From: ijas ahammed Date: Wed, 14 Jul 2021 11:25:46 +0000 Subject: [PATCH] [FIX] website: avoid traceback when clicking on stat buttons Prior to this commit, if we go to visitors form view and clicked on stat buttons like offline/connected or visits, a traceback was thrown because the buttons are meant for showing stat only, they aren't linked to real actions / methods. It used to work before, but the recent traceback is result of more strict checks from the web-client re-write. See the original commit[1] for more information. This commit sets 'disabled' attribute on the buttons, and keeps the action from being performed for display-only stat buttons. commit[1] - https://github.com/odoo/odoo/commit/0573acae2306bf5da2005852da9323ddc59e5431 TaskID-2593552 closes odoo/odoo#73813 Signed-off-by: Thibault Delavallee (tde) --- addons/website/views/website_visitor_views.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/website/views/website_visitor_views.xml b/addons/website/views/website_visitor_views.xml index bf1e5e602ba..20ff36fb7a1 100644 --- a/addons/website/views/website_visitor_views.xml +++ b/addons/website/views/website_visitor_views.xml @@ -181,15 +181,15 @@
- - -