CurrentThread is now really deprecated in Python 3.10 ... Time to change. Part-of: odoo/odoo#91927
_render
ir.ui.view