From 08064dae07a89a01518aca9e13bf7a9c6d462ffb Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Wed, 30 Jan 2019 11:58:34 +0100 Subject: [PATCH] Add default name ordering on referential models issue7971 review66501002 --- payment.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/payment.py b/payment.py index efe2a9a7be..3c346cb467 100644 --- a/payment.py +++ b/payment.py @@ -33,6 +33,11 @@ class Journal(ModelSQL, ModelView): ('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'):