The util method to get the key was removed with [1] as no more useful in our codebase. But it was still actually needed for internal reason [2]. This commit restores that. [1]: https://github.com/odoo/odoo/commit/e10493711879c7f0cc8832db3f1936c622ea605c [2]: https://github.com/odoo/internal/commit/de3532b3640793049d356c659df0497edd9a7fc6 closes odoo/odoo#101999 X-original-commit: a48692d105dc2321b1799f5ef1013c022efbb7c3 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>