Wednesday, December 6, 2023
2 changes · 17.0
Enhancements to existing features
Requests for the website robots.txt file no longer trigger a language-based redirect. This removes an unnecessary step for real users and keeps handling of this non-language-specific file consistent with similar website files.
Original PR description
Same as what was done: - in 2019 for favicon.ico at [1]. - in 2018 for sitemap.xml at [2]. - in 2015 for many controllers at [3]. Note that it's not about crawlers/robots, because those won't go through the lang redirect (see `is_a_bot()`). It's just to avoid a redirect which has no meaning/sense when requested by real users. /robots.txt is not language dependent. [1]: https://github.com/odoo/odoo/commit/94bcbc92e5e5a6fd3de7267e3c01f8c11fb045f4 [2]: https://github.com/odoo/odoo/commit/708ad186d52aff9270ea73888326370ada2fbc71 [3]: https://github.com/odoo/odoo/commit/a696913364ffc4d5f1ce0675bc9be82f84f3ff93
This update improves the reliability of payslip form creation by adding a safety check to ensure options are properly validated before use. This prevents errors during testing and makes the payroll system more robust when handling edge cases.
Original PR description
- Verify that options is different to None to avoid errors when trying to get 'toolbar' when creating payslip Form in unit tests.