Friday, August 30, 2024
2 changes · 17.0
Enhancements to existing features
This update improves the error messages users see when uploading digital certificates for Ecuadorian tax compliance. Instead of a generic message, users will now receive specific guidance about what went wrong—such as when a certificate uses the full country name "Ecuador" instead of the required 2-character code "EC". This helps users quickly identify and fix certificate upload issues without confusion.
Original PR description
### Steps to reproduce: - Install the module "l10n_ec" and switch to Ecuadorian company - Go to Accounting > Configuration > Ecuadorian SRI > Digital Certificates SRI - When uploading a p12 file with the country name "Ecuador" and not "EC" - An error pops up but does not tell the right reason ### Cause: The cryptography library only accepts country names in the form of 2 character country code, so it raises an error. If an error occurs during the loading of the file, the error message will always be "Error loading certificate %s, check that password is correct and file type is p12". ### Solution: As we cannot display the error messages of external libraries (here the cryptography library), this commit adds the reason "The country name is not a 2 character country code." in the error message. opw-4116914 Forward-Port-Of: odoo/enterprise#68633
This update improves the Carta Porte 3.0 PDF report used for Mexican shipping documentation. The report now has a clearer layout, corrected tax registration and fiscal residence information for transport figures, and fixed date fields that were previously swapped. These improvements ensure the shipping documents are more accurate and easier to read for compliance purposes.
Original PR description
[This commit] added in a new Carta Porte 3.0 PDF for Mexico in version saas-17.3 that inherits from the standard delivery slip, by removing all the tables related to the products etc. (for security reasons: the driver doesn't need to know what's in the cargo) and adding in some new required fields. This commit backports the report from saas-17.3 with the following changes: - We improved the layout a bit to make the report even clearer. - We corrected the "Num Reg ID Trib" and "Residencia Fiscal" of the "Figura"'s to use the right value and show them per figura. - We corrected the departure and arrival date (they were swapped). These changes will be forward-ported again to the upper versions. [This commit]: https://github.com/odoo/enterprise/commit/af14612ec5942acdc06584ec8ff9d8bf26998ae7 task-3990042 Forward-Port-Of: odoo/enterprise#65337