Friday, April 4, 2025
1 change · 17.0
Enhancements to existing features
Manual invoices in Uruguay localization will no longer be blocked by electronic document number format checks. This helps users record foreign supplier invoices or other manual documents with non-Uruguayan formats, while keeping validation for electronic documents and improving the related error message.
Original PR description
Description of the issue/feature this PR addresses: This PR is to avoid making unnecessary format validations on manual documents, as well as to improve the error message shown when the validation is…
Description of the issue/feature this PR addresses: This PR is to avoid making unnecessary format validations on manual documents, as well as to improve the error message shown when the validation is done and the user had entered an invalid document number. A use case for these changes is when the user wants to register an invoice from a foreign supplier that does not have the Uruguayan format, and at the moment of filling the “Document Number” field, an error message appears saying that it does not comply with the Uruguayan number validations. Current behavior before PR: Either electronic or manual document numbers format were validated against the electronic documents format. Desired behavior after PR is merged: Only electronic document numbers are validated to check if they have the proper format. Steps to reproduce the error: 1) Install l10n_uy 2) Create an invoice using a manual journal. 3) Set a random document number (for example '1234') 4) Check that a pop up is raised, saying that the format is invalid. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr