Commit 9d21aacd authored by Cédric Krier's avatar Cédric Krier
Browse files

Add generic test for field function searcher and domain field method

parent ead2b4999832
Pipeline #61682 passed with stages
in 16 minutes and 32 seconds
......@@ -501,6 +501,8 @@
getattr(model, attr)()
elif attr.startswith('order_'):
model.search([], order=[(attr[len('order_'):], None)])
elif attr.startswith('domain_'):
model.search([(attr[len('domain_'):], '=', None)])
elif any(attr.startswith(p) for p in [
'on_change_',
'on_change_with_',
......@@ -759,6 +761,9 @@
'model': model.__name__,
'field': field_name,
})
if func_name == field.searcher:
getattr(model, field.searcher)(
field_name, (field_name, '=', None))
@with_transaction()
def test_ir_action_window(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment