From 64aa8dd3b02fe22ee2712c1a7035ccaa5dcaf60f Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Fri, 12 Aug 2022 15:06:55 +0000 Subject: [PATCH] [FIX] web: stat button string in a span With only the module appointment installed, go to Calendar App, Online Appointments and click on "Create". In the form view displayed a stat button "Customer Preview" is visible but is badly styled. This is due to the fact that "Customer Preview" is no longer wrap by a span since the rewriting of the form view (see odoo/odoo@48ef812a635f70571b395f82). We fix the problem by making the default slot content of ViewButton be a span wrapping the prop string (if any). Part-of: odoo/odoo#98072 --- addons/web/static/src/views/view_button/view_button.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/views/view_button/view_button.xml b/addons/web/static/src/views/view_button/view_button.xml index f6930218336..db84af78392 100644 --- a/addons/web/static/src/views/view_button/view_button.xml +++ b/addons/web/static/src/views/view_button/view_button.xml @@ -18,7 +18,7 @@ t-on-click.stop="onClick" > - +