From 693511076d9a989e5828ebbbbe67b4007a7b0033 Mon Sep 17 00:00:00 2001 From: "Valentin Vallaeys (vava)" Date: Thu, 15 Sep 2022 12:48:20 +0000 Subject: [PATCH] [IMP] Payment: hide the URL payment link Since the generated payment link is not editable, it is hidden behind the wizard copy button. To help the users understand the button, the text on the button can now be edited in the xml with a `label` attribute. task-2683480 closes odoo/odoo#100261 Signed-off-by: Vallaeys Valentin (vava) Co-authored-by: Valentin Chevalier --- .../wizards/payment_link_wizard_views.xml | 12 ++++++++---- .../fields/copy_clipboard/copy_button.xml | 2 +- .../copy_clipboard/copy_clipboard_field.js | 19 ++++++++++++++----- .../copy_clipboard/copy_clipboard_field.xml | 2 +- 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/addons/payment/wizards/payment_link_wizard_views.xml b/addons/payment/wizards/payment_link_wizard_views.xml index 3c66f596c76..6581172607d 100644 --- a/addons/payment/wizards/payment_link_wizard_views.xml +++ b/addons/payment/wizards/payment_link_wizard_views.xml @@ -22,14 +22,18 @@ attrs="{'invisible':[('has_multiple_providers', '=', False)]}"/> - - -
-
diff --git a/addons/web/static/src/views/fields/copy_clipboard/copy_button.xml b/addons/web/static/src/views/fields/copy_clipboard/copy_button.xml index 4251187e41d..dcf05f77db0 100644 --- a/addons/web/static/src/views/fields/copy_clipboard/copy_button.xml +++ b/addons/web/static/src/views/fields/copy_clipboard/copy_button.xml @@ -5,7 +5,7 @@