From db583e3df5fea0536b60d44e3a1d1d598a650d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 14 Sep 2022 19:27:00 +0200 Subject: [PATCH] Test custom order by calling search on the field issue11638 review437311003 --- trytond/tests/test_tryton.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trytond/tests/test_tryton.py b/trytond/tests/test_tryton.py index 6734fe2da2..76225bdfe0 100644 --- a/trytond/tests/test_tryton.py +++ b/trytond/tests/test_tryton.py @@ -481,8 +481,7 @@ class ModuleTestCase(unittest.TestCase): else: getattr(model, attr)() elif attr.startswith('order_'): - tables = {None: (model.__table__(), None)} - getattr(model, attr)(tables) + model.search([], order=[(attr[len('order_'):], None)]) elif any(attr.startswith(p) for p in [ 'on_change_', 'on_change_with_',