Sort dashboards, widgets and tables by name.
This commit is contained in:
parent
8beeeefd79
commit
8e84866988
|
@ -21,6 +21,7 @@ class Dashboard(ModelSQL, ModelView):
|
|||
@classmethod
|
||||
def __setup__(cls):
|
||||
super().__setup__()
|
||||
cls._order.insert(0, ('name', 'ASC'))
|
||||
cls._buttons.update({
|
||||
'show': {
|
||||
'icon': 'tryton-board',
|
||||
|
@ -277,6 +278,11 @@ class Widget(ModelSQL, ModelView):
|
|||
def default_image_format():
|
||||
return 'svg'
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
super().__setup__()
|
||||
cls._order.insert(0, ('name', 'ASC'))
|
||||
|
||||
@classmethod
|
||||
def validate(cls, widgets):
|
||||
super().validate(widgets)
|
||||
|
|
Loading…
Reference in New Issue