Tuesday, July 23, 2024
1 change
Resolved issues and error corrections
This update adjusts how the Kenya EDI system logs messages when no company information is found during routine scheduled tasks. Instead of flagging these occurrences as errors, they are now logged as warnings, which better reflects that this is a normal operational situation rather than a system problem. This reduces unnecessary alert notifications and helps teams focus on actual issues.
Original PR description
Currently, log level error message occur when no company is found during scheduled actions run at line [1]. This commit changes 'logger.error' to 'logger.warning' to log a message instead of an error since this is not an actual error in the code base. [1]-https://github.com/odoo/enterprise/blob/ddc81ed35a6738739647db868c13236673695cff/l10n_ke_edi_oscu/models/res_company.py#L437-L438 sentry-5608113473