diff --git a/trytond/trytond/ir/ui/menu.py b/trytond/trytond/ir/ui/menu.py index c21f416f3e..fb81f09fcd 100644 --- a/trytond/trytond/ir/ui/menu.py +++ b/trytond/trytond/ir/ui/menu.py @@ -262,7 +262,7 @@ class UIMenu( return menu2favorite -class UIMenuFavorite(sequence_ordered(), ModelSQL, ModelView): +class UIMenuFavorite(ModelSQL, ModelView): "Menu Favorite" __name__ = 'ir.ui.menu.favorite' @@ -289,7 +289,8 @@ class UIMenuFavorite(sequence_ordered(), ModelSQL, ModelView): user = Transaction().user favorites = cls.search([ ('user', '=', user), - ]) + ], + order=[('id', 'DESC')]) return [(f.menu.id, f.menu.rec_name, f.menu.icon) for f in favorites] @classmethod diff --git a/trytond/trytond/ir/view/ui_menu_favorite_form.xml b/trytond/trytond/ir/view/ui_menu_favorite_form.xml index 80117401f8..c0eb11289a 100644 --- a/trytond/trytond/ir/view/ui_menu_favorite_form.xml +++ b/trytond/trytond/ir/view/ui_menu_favorite_form.xml @@ -4,8 +4,6 @@ this repository contains the full copyright notices and license terms. -->