Saturday, March 9, 2024
2 changes · saas-17.1
Resolved issues and error corrections
This update fixes an issue where time sheet entries linked to projects using global time off were incorrectly included in time off calculations. The change ensures that time sheet entries are only considered for global time off when they are directly associated with that type of time off. This improves the accuracy of time off reporting.
Original PR description
Fix to avoid considering TS lines for projects linked to global time off Forward-Port-Of: https://github.com/odoo/odoo/pull/156338 Forward-Port-Of: odoo/odoo#157108
This update ensures that websites remain accessible to public users even after a company is archived. Previously, archiving a company linked to a website would break website access. This change corrects a potential disruption to website functionality for customers and users.
Original PR description
This commit prohibits the archival of a company if it is associated with a website. Otherwise, the website wouldn't be accessible anymore by public users (and so by all users if they need to login). Step to reproduce: - On website 2, change the company from SF to Chicago - In the website list view (in debug mode), reorder the websites so website 2 is the first one in the tree view - Archive the Chicago company (from debug > companies and do it from the list view) - Try to access the website/runbot from an incognito tab - It will show a raw 403 error Note that the companies can only be archives since Odoo 16, thanks to this commit: https://github.com/odoo/odoo/commit/7d0996bb151f68647b22719eee5ed4a4c35574bb opw-3749772 Forward-Port-Of: odoo/odoo#156988 Forward-Port-Of: odoo/odoo#156470