From f3fb83a183d19cfabfe00fdf591dbcba00ca9f61 Mon Sep 17 00:00:00 2001 From: "Anita (anko)" Date: Thu, 8 Dec 2022 09:07:41 +0000 Subject: [PATCH] [IMP] payment: add distinction between providers and tokens Currently there is no distinction between saved tokens and providers and there is no info on tokens under what provider they were created. When client has more than one token it looks messy and counters the point of token existance. Now tokens have their creation date,provider and are no longer in the same card as providers. task-2510973 closes odoo/odoo#108260 Signed-off-by: Antoine Vandevenne (anv) --- addons/payment/views/payment_templates.xml | 210 ++++++++++-------- .../views/donation_templates.xml | 4 +- .../website_sale_picking/views/templates.xml | 2 +- 3 files changed, 121 insertions(+), 95 deletions(-) diff --git a/addons/payment/views/payment_templates.xml b/addons/payment/views/payment_templates.xml index 12680add1e9..3dc2d0f9611 100644 --- a/addons/payment/views/payment_templates.xml +++ b/addons/payment/views/payment_templates.xml @@ -56,8 +56,65 @@ + + + Saved payment methods +
+ + +
+ +
+ + +
+
+
+ + Other payment methods
-
- - -
- -
- - -
@@ -209,8 +222,66 @@ else None"/> + + + Saved payment methods +
+ + +
+ + + +
+ Managed by + + – created on + +
+
+ + +
+
+
+ +
Add new payment method
-
- - -
- - - -
- - -
@@ -416,7 +442,7 @@ diff --git a/addons/website_payment/views/donation_templates.xml b/addons/website_payment/views/donation_templates.xml index 1c8e3bd6b7f..c1524bdf0b3 100644 --- a/addons/website_payment/views/donation_templates.xml +++ b/addons/website_payment/views/donation_templates.xml @@ -90,12 +90,12 @@ - + - token.provider_id.id + provider.id diff --git a/addons/website_sale_picking/views/templates.xml b/addons/website_sale_picking/views/templates.xml index 2ca10b70183..e42cd0ead21 100644 --- a/addons/website_sale_picking/views/templates.xml +++ b/addons/website_sale_picking/views/templates.xml @@ -7,7 +7,7 @@