Wednesday, July 16, 2025
2 changes · 17.0
Resolved issues and error corrections
This fixes an error that could occur when users opened a depreciation schedule for a draft asset before its calculations had been generated. The schedule now uses the first available date when no prior accounting entries exist, allowing users to view draft asset information without interruption.
Original PR description
Issue: https://github.com/odoo/odoo/issues/219112 Steps to reproduce:- - Minimum 1 asset in draft - Computation board not computed yet - Opening the depreciation schedule with draft entries. Cause:- - When asset is in draft and computation board is not computed yet no Journal Entries are created for that asset. - `asset_date` is minimum value among dates of related moves. - In this case there are no moves yet so `asset_date` is 'NoneType' - `asset_date = min([asset_date, move_vals['date']])` - In above line when we try to compare 'datetime.date' and 'NoneType' it gives rpc error. Fix: `min([asset_date, move_vals['date']]) if asset_date else move_vals['date']` Followup on commit: https://github.com/odoo/enterprise/commit/eb57a9bc4066ece08059384742d70705a646bbdc Forward-Port-Of: odoo/enterprise#90308
This update keeps appointment scheduling and WhatsApp-related checks working reliably with newer Python and Debian versions. It also makes message matching less sensitive to small date-format spacing changes, reducing avoidable failures after platform updates.