Monday, April 28, 2025
2 changes · 17.0
Resolved issues and error corrections
Vendor bills imported from Mexican CFDI XML files now show the correct SAT status after users run the SAT update. This prevents bills from appearing to have no SAT status even when the underlying validation information is available.
Original PR description
- With l10n_mx_edi, create an invoice and send it to the cfdi. Download the cfdi xml. - Import the xml as a vendor bill. Confirm and click on Update SAT. - The vendor bill list view the l10n_mx_edi_cfdi_sat_state is set to false despite the l10n_mx_edi.document.sat_state being set. https://github.com/odoo/enterprise/commit/b34a4d105c67807628284257be51295e33da6bf0 added the ability to import cfdi xml as vendor bills and updated the selection for l10n_mx_edi.document.state with invoice_received. However the compute _compute_l10n_mx_edi_cfdi_state_and_attachment which depends on l10n_mx_edi.document.state was not updated to take into account that new possible selection. opw-4673134
Creating a planning shift during a non-working period could fail when the shift was not linked to a resource. The update makes timezone lookup handle that case safely, improving reliability for scheduling users.
Original PR description
Before this commit, the user could have a crash when he tries to create a shift in non-working period because the method to search on the right timezone to use does not take into account the shift could be not linked to a resource. This commit makes sure the timezone is correctly found without any issue when we search on a timezone.