In order to be able to easily patch Date in py_date_tests and elsewhere, we refactor the code of the legacy and new patchDate functions. X-original-commit: 0e697c82be80cae9cc993b4be179fec42b8dae83 Part-of: odoo/odoo#77035
In order to be able to easily patch Date in py_date_tests and elsewhere, we refactor the code of the legacy and new patchDate functions. X-original-commit: 0e697c82be80cae9cc993b4be179fec42b8dae83 Part-of: odoo/odoo#77035