This commit removes legacy patch/unpatch functions and adapts their use by using the modern patch. There was also a custom patch function used in tests which has been replaced too. closes odoo/odoo#130867 Related: odoo/design-themes#685 Related: odoo/enterprise#45271 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>