Test custom order by calling search on the field
issue11638 review437311003
This commit is contained in:
1 parent
71933379f4
commit
db583e3df5
1 file changed
+1
-2
@@ -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_',
|
||||
|
||||
Reference in new issue
Block a user