Thursday, August 1, 2024
1 change
Resolved issues and error corrections
This fix prevents the Kenya localization module upgrade from failing when certain tax configurations are missing. Previously, the automatic installation of the Kenya EDI module could break the entire upgrade process for customers who don't use this feature. Now the system gracefully handles missing taxes, allowing upgrades to complete successfully while users can optionally reload taxes later if needed.
Original PR description
At the moment, if any of the taxes for which l10n_ke_edi_oscu adds tax types doesn't exist, the upgrade to 17.0 fails, because l10n_ke_edi_oscu is set to auto_install. We don't want this upgrade to fail, especially given that this might affect customers who have no intention of using l10n_ke_edi_oscu. Solution: we simply don't set the tax type on those taxes which don't exist. If the user wants to use l10n_ke_edi_oscu properly, they should re-load the taxes via the Reload button in the Accounting settings.