Test 'search_rec_name' method

Hello everyone

Is there a way to test the ‘search_rec_name’ method in a scenario or something?

Sincerely

search_rec_name is an internal method, you can use find() with a domain for rec_name, like:
>>> number, = Number.find([('rec_name', '=', 'CODE10')])

this will trigger search_rec_name

By searching on rec_name?

I must say I don’t understand your issue :slight_smile:.

The obvious …

Thanks a lot

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.