changeset ec0d07e1249a in modules/account_payment:default
details: 
https://hg.tryton.org/modules/account_payment?cmd=changeset;node=ec0d07e1249a
description:
        Add default name ordering on referential models

        issue7971
        review66501002
diffstat:

 payment.py |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 920de82b1e63 -r ec0d07e1249a payment.py
--- a/payment.py        Sat Jan 26 01:10:47 2019 +0100
+++ b/payment.py        Wed Jan 30 11:58:34 2019 +0100
@@ -33,6 +33,11 @@
             ('manual', 'Manual'),
             ], 'Process Method', required=True)
 
+    @classmethod
+    def __setup__(cls):
+        super().__setup__()
+        cls._order.insert(0, ('name', 'ASC'))
+
     @staticmethod
     def default_currency():
         if Transaction().context.get('company'):

Reply via email to