Daily updates from Odoo
Wednesday, February 26, 2025
2 changes · master
Resolved issues and error corrections
Resource-based appointments will no longer automatically assign an organizer, preventing calendar sync problems where Microsoft requires the organizer to be part of the event. Notifications still come from an appropriate responsible user, and video call options are hidden for resource appointments to avoid unwanted calendar spam.
Original PR description
It does not make sense for resource appointments to have an organizer this causes issues with microsoft_sync as it requires the organizer to be a partner of the event for syncing purposes. Instead we don't set an organizer for resources, but we add a responsible getter so we can keep notifying users as a relevant regular user instead of odoobot task-4146850
This fix corrects how purchase orders are updated when the approvals integration is active. It avoids unnecessary database work and helps prevent incorrect updates behind the scenes, improving reliability without changing the user workflow.
Original PR description
The `write` method for `purchase.order` was not correctly overridden in `approvals_purchase`. This commit fixes it so as to avoid unnecessary db queries (i.e. `search` calls) and incorrect reassignment of the values of the `self` recordset. Also does a small improvement of using a defaultdict instead of manually recreating its logic for a normal dict. follow-up to: odoo/enterprise#71294 odoo/enterprise#79559