Add default name ordering on referential models

issue7971
review66501002
This commit is contained in:
Sergi Almacellas Abellana committed 2019-01-30 11:58:34 +01:00
1 parent ea782b7b09
commit 08064dae07
1 file changed
+5
+5
View File
@@ -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'):