Check the return type of Function fields searchers
This commit is contained in:
@@ -888,8 +888,9 @@ class ModuleTestCase(_DBTestCase):
|
||||
'field': field_name,
|
||||
})
|
||||
if func_name == field.searcher:
|
||||
getattr(model, field.searcher)(
|
||||
domain = getattr(model, field.searcher)(
|
||||
field_name, (field_name, '=', None))
|
||||
self.assertIsInstance(domain, list)
|
||||
|
||||
@with_transaction()
|
||||
def test_ir_action_window(self):
|
||||
|
||||
Reference in New Issue
Block a user