Tuesday, March 31, 2026
2 changes · 17.0
Resolved issues and error corrections
This update addresses a limitation in how Odoo updates its product UNSPSC codes. Previously, new codes were only added during initial installation, not subsequent updates. Now, an automated upgrade script runs during module updates to ensure the database always reflects the latest UNSPSC codes, without modifying existing records.
Original PR description
**Problem:** Periodically, the UNSPSC codes may be updated and they must be added to existing databases. Normally this is done by module update, however, since there are thousands of UNSPSC codes, a CSV imported via SQL is used instead of XML files. This import is only implemented on module install and not module update, so there is no way to update the UNSPSC codes in existing databases. **Solution:** An upgrade script based on the post-init hook has been added, which will add the new codes to the database, if any. Note that: - The version of this upgrade script should be bumped any time the codes list is updated. - Existing records will not be updated opw-5943366
This update fixes a technical issue where syncing cancelled events from Microsoft Calendar would cause an error in Odoo. Now, when a cancelled event is synced, Odoo correctly handles the situation, preventing errors and ensuring data consistency. This improves the reliability of event synchronization.
Original PR description
Before this commit, when syncing events from Microsoft, if there was a cancelled event that was not yet synchronized with Odoo, calling browse on event.odoo_id would raise an error as it would be None. opw-5917677 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr