Add default name ordering on referential models
issue7971 review66501002
This commit is contained in:
1 parent
ea782b7b09
commit
08064dae07
1 file changed
+5
@@ -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'):
|
||||
|
||||
Reference in new issue
Block a user