Thursday, January 4, 2024
2 changes · 17.0
Resolved issues and error corrections
This update resolves critical bugs in the website rental system that were causing incorrect duration calculations and timezone-related errors. These fixes ensure customers see accurate rental periods and pricing information regardless of their location, improving the reliability of the rental checkout process.
Original PR description
This PR is the fix for 17.0+ that solves the two problems explained in the PRs: https://github.com/odoo/enterprise/pull/51878 https://github.com/odoo/enterprise/pull/52102 opw-3573163
This update fixes critical issues with Mexican EDI (CFDI) global invoices in the Point of Sale system. It resolves problems where refunded orders couldn't be invoiced together and where duplicate line amounts were incorrectly reported. Users can now properly process refunds and create global invoices without errors, improving the ability to submit transactions to Mexican tax authorities.
Original PR description
**[FIX] l10n_mx_edi: Fix management of negative lines** Bug: When there were 2 lines with exactly the same amount, one line with 0 amount was reported on the CFDI. Improvement: When dealing with…
**[FIX] l10n_mx_edi: Fix management of negative lines** Bug: When there were 2 lines with exactly the same amount, one line with 0 amount was reported on the CFDI. Improvement: When dealing with multiple negative lines, put the lines having the same amount first. **[FIX] l10n_mx_edi_pos: Fix management of pos order refunds for global invoice** - Create a pos order - Refund the pos order - Try to create a global invoice for both: UserError => We don't allow refund on GI so in that case, the user is stuck and can't send the refund to the government. To fix this, the refunded lines are added to the order like order lines part of the present order. **[IMP] l10n_mx_edi[_pos]: Remove 'l10n_mx_edi.manage_invoice_negative_lines' config parameter** Since we have now the global invoice, we have to manage the negative lines on the POS. Otherwise, nobody is able to make a refund. **[FIX] l10n_mx_edi_pos: Mock unexpected call to web-service in not external test** Since the pos orders are paid and invoiced, the CFDI is created automatically. No need to call the send & print wizard. task: 3638126