Daily updates from Odoo
Saturday, May 25, 2024
3 changes · 17.0
Resolved issues and error corrections
This fix prevents users from accidentally deleting electronic invoicing (EDI) documents in the Mexican localization module. EDI documents are critical for tax compliance and legal record-keeping in Mexico, so protecting them from deletion ensures data integrity and regulatory compliance.
Original PR description
opw-3921760 opw-3889677 Forward-Port-Of: odoo/enterprise#62859
This update corrects unrealistic demo data in the Uruguay localization module. A foreign partner incorrectly had a Uruguay resident document type, which is now fixed. A new demo partner representing a resident alien (the proper use case for this document type) has been added, and email addresses have been added to demo partners to enable testing of email sending and printing features for invoices.
Original PR description
### Description of the issue/feature this PR addresses: We have demo data that is not a real case of use, and if we try to re-use the partner to invoice for the EDI module we will get an error. ###…
### Description of the issue/feature this PR addresses: We have demo data that is not a real case of use, and if we try to re-use the partner to invoice for the EDI module we will get an error. ### Current behavior before PR: We have a **Foreign Partner** from the United States have an identification type of Uruguay Resident (NIE). This is not a real case because if you are from outside of Uruguay you can not select the NIE document type or any document issued by the Uruguay government. Also if we want to re-use the demo partner to create new invoices and test the Send and Print functionality we are not able to send emails because the partners do not have an email set. ### Desired behavior after PR is merged: We fixed this in the demo so makes sense. Now we have two demo partners: * Fix Foreign partner to a proper document type * Add a new partner, Resident Alien, who is a foreign person living in Uruguay which is the proper case for the use of NIE document type. * We add an email to the UY demo partner, this way we can use this partners to test send and print functionality. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix resolves an issue where the currency information from purchase orders was not being imported correctly when orders were received through EDI or OCR systems. The problem occurred because a section header was being added to the invoice before the purchase order data was imported, which prevented the currency from being recognized. This update ensures that currency information is properly captured during the automated import process.
Original PR description
When a purchase order is imported through an EDI or the OCR, a line section "From PXXXXX document" is inserted in the lines before the actual import of the PO content. This had the side effect to disable the import of the currency from the PO because it's only imported if the invoice doesn't already contain invoice lines. Related ticket: 3756004 Forward-Port-Of: odoo/odoo#166566