Wednesday, September 11, 2024
2 changes
Resolved issues and error corrections
This fix corrects an issue where Mexican tax documents (CFDI) generated from point-of-sale invoices were incorrectly using the customer's individual name instead of the company name. This ensures that tax filings with Mexican authorities contain the correct buyer information as provided by the business.
Original PR description
Currently, when a user requests an invoice from a POS ticket under a Mexican company, the CFDI document attached to the invoice incorrectly uses the buyer's name instead of using the provided company name. ### Steps to reproduce * install `l10n_mx_edi_pos` * Switch to a Mexican company * the settings enable "Generate a code on ticket" * validate a POS order * follow the instructions on the ticket to generate an invoice. Make sure to provide a company name on the customer form. When checking the XML file that is forwarded to the Mexican tax authorities, you see that only the "individual name" is registered there as the buyer, when it should be the company name. opw-4103543 opw-4071503
This fix resolves two critical issues in the Mexican electronic shipping document (Cartaporte) generation that were introduced during a version upgrade. The system was incorrectly calculating customs regime data, causing PDF generation to fail, and was missing country names in tax residency information. These fixes ensure shipping documents are generated correctly for Mexican operations.
Original PR description
[This commit] is a fw-port from 15.0. However, during the adaptation between the versions, we had two issues: - the `regimenes_aduanero` for the PDF was incorrectly computed, causing a crash on generation - the country names for the Residencia Fiscal were not added anymore This commit fixes these issues. task-3990042 [This commit]: https://github.com/odoo/enterprise/commit/e76859d90cfca3a144f10860e8e4e6845850e4f8