diff options
| author | Antoine Vandevenne (anv) <anv@odoo.com> | 2019-09-30 15:53:43 +0000 |
|---|---|---|
| committer | Arnaud Joset <arj@odoo.com> | 2019-10-01 15:08:00 +0000 |
| commit | 4da9469569b6adbb748cc19b863e832bd5de30d2 (patch) | |
| tree | c54b23ea990b571257d380aa28a833a09fc9ebd0 /addons/payment | |
| parent | 40deff7cbe5210787ee146624bb40a9c2cb35b6d (diff) | |
[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
Diffstat (limited to 'addons/payment')
| -rw-r--r-- | addons/payment/models/payment_acquirer.py | 2 | ||||
| -rw-r--r-- | 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 @@ </t> <span class="payment_option_name"> <t t-esc="acq.display_as or acq.name"/> - <div t-if="acq.state == 'test'" class="badge-pill badge-warning float-right"> + <div t-if="acq.state == 'test'" class="badge-pill badge-warning float-right" style="margin-left:5px"> Test Mode </div> </span> |
