From bd291c850f2e6e528ce5b9cae6d7d04ba5855477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 18 Dec 2020 00:30:17 +0100 Subject: [PATCH] Allow ordering credentials issue9909 review322781002 --- carrier.py | 5 +++-- view/ups_credential_form.xml | 5 ++++- view/ups_credential_list.xml | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/carrier.py b/carrier.py index bfd414da3f..bf646d7e5f 100644 --- a/carrier.py +++ b/carrier.py @@ -1,11 +1,12 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. -from trytond.model import ModelSQL, ModelView, MatchMixin, fields +from trytond.model import ( + ModelSQL, ModelView, MatchMixin, sequence_ordered, fields) from trytond.pool import PoolMeta from trytond.pyson import Eval -class CredentialUPS(ModelSQL, ModelView, MatchMixin): +class CredentialUPS(sequence_ordered(), ModelSQL, ModelView, MatchMixin): 'UPS Credential' __name__ = 'carrier.credential.ups' diff --git a/view/ups_credential_form.xml b/view/ups_credential_form.xml index cfed76a533..7a400076ef 100644 --- a/view/ups_credential_form.xml +++ b/view/ups_credential_form.xml @@ -1,9 +1,12 @@ -
+