From 4da9469569b6adbb748cc19b863e832bd5de30d2 Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Mon, 30 Sep 2019 15:53:43 +0000 Subject: [PATCH] [IMP] Payment: Remove margin in payment template and payment acquirer order Space was needed between the payment acquirer and its state. The payment acquirers were not properly sorted in the kanban view. task-2052537 --- addons/payment/models/payment_acquirer.py | 2 +- addons/payment/views/payment_templates.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index f09a6466d49..093964aa5e4 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -60,7 +60,7 @@ class PaymentAcquirer(models.Model): """ _name = 'payment.acquirer' _description = 'Payment Acquirer' - _order = 'state desc, sequence, name' + _order = 'module_state, state, sequence, name' def _get_default_view_template_id(self): return self.env.ref('payment.default_acquirer_button', raise_if_not_found=False) diff --git a/addons/payment/views/payment_templates.xml b/addons/payment/views/payment_templates.xml index 180f573a0e9..e0e5a57df8e 100644 --- a/addons/payment/views/payment_templates.xml +++ b/addons/payment/views/payment_templates.xml @@ -65,7 +65,7 @@ -
+
Test Mode