Add default name ordering on referential models

issue7971
review66501002
This commit is contained in:
Sergi Almacellas Abellana
2019-01-30 11:58:17 +01:00
parent c877300438
commit 20a99c5bdf
+5
View File
@@ -25,6 +25,11 @@ class Procedure(ModelSQL, ModelView):
help="The main identifier of the Dunning Procedure.")
levels = fields.One2Many('account.dunning.level', 'procedure', 'Levels')
@classmethod
def __setup__(cls):
super().__setup__()
cls._order.insert(0, ('name', 'ASC'))
class Level(sequence_ordered(), ModelSQL, ModelView):
'Account Dunning Level'