The last two parent of this commit introduced fixes towards the Snippet Cache, more specifically, the snippet cache according to the snippet language. Commit [1] introduced a Snippet template "Cache" that keeps the snippet templates in memory throughout multiple instantiation of the SnippetsMenu. Unfortunately, while this improved performance, it also introduced bugs where the cache was not properly cleared. Starting the edition in translate mode, then switching back to master edit mode would sometimes lead to the Snippets being loaded in the wrong language. The parent commits fix that but this one introduces a test to make the snippet cache and translation more robust. [1]: https://github.com/odoo/odoo/commit/03c552690b15cbf2e7d6b7812386ac64042219af#diff-52a4f9d2c217548e69e6b7fd097f286f1754a6389734eea254b87255e501cbefR18 closes odoo/odoo#108643 X-original-commit: a066dc8319cc9c204656a25af16fc78ae618cd71 Signed-off-by: Romain Derie (rde) <rde@odoo.com>