Using local ids in test is cumbersome: we need to retrieve the mail record associated with the server record to get it while the thread model/id are more than enough and available. This PR replaces thread local id data attribute by thread model/id. task-2959366 closes odoo/odoo#98588 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>