Test custom order by calling search on the field

issue11638
review437311003
This commit is contained in:
Cédric Krier committed 2022-09-14 19:27:00 +02:00
1 parent 71933379f4
commit db583e3df5
1 file changed
+1 -2
+1 -2
View File
@@ -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_',