Daily updates from Odoo
Wednesday, August 14, 2024
3 changes · 17.0
Resolved issues and error corrections
This update refreshes translation template files across multiple accounting and business modules to ensure they are current and accurate. Outdated translation files were updated, and empty files that were no longer needed were removed. This ensures that translators have the correct and up-to-date content to work with when localizing Odoo for different languages.
Original PR description
Some were out of date. Also, there were some empty pot files that were deleted along with their obsolete .po files.
This fix resolves an issue where manually changing the next invoice date on a subscription would incorrectly mark it as "To be invoiced" even though no actual invoicing changes were needed. The system now properly ignores date changes when calculating invoiced quantities, ensuring subscription status remains accurate regardless of when invoices are scheduled.
Original PR description
## Issue: - changing the next invoice date to a future date in the subscription app incorrectly changes the subscription status to "To be invoiced" ## Steps To Reproduce: - create subscription, and confirm it - Run the scheduled action: 'Sale Subscription: generate recurring invoices and payments' - change the 'Date of Next Invoice' on the subscription. - Notice that the related quotation invoice status is `To invoice` ## Solution: - Changing next_invoice_date or last_invoice_date should not impact the quantity invoiced, as invoiced amounts should remain unchanged. - Therefore, I removed `order_id.next_invoice_date` and `order_id.last_invoice_date` from the dependencies of `_compute_qty_invoiced`. opw-3932847
This fix ensures that unit prices displayed on Ecuadorian invoice PDFs match the unit prices in the XML files, as required by Ecuadorian law. Previously, when taxes were included in the price, the PDF and XML showed different unit prices. The fix aligns the PDF calculation with the XML calculation to ensure compliance.
Original PR description
The Ecuadorian law requires the unit price on the XML invoice and on the PDF to be the same, this is currently not the case with taxes included in the price. ### Steps to reproduce: - Install the 'l10n_ec' module and switch to an Ecuadorian company - Change the 'IVA 15% (411, Servicios)' Tax to be included - In Accounting create a new Customer Invoice - Select 'Instituto Ecuatoriano' as Customer - Add a line with the included tax set before - Select 'Sin utilization del sistema financiero' as Payment Method - Confirm - On the blue popup at the top of the page, click 'process now' to get the XML in the chatter - Click preview to get the PDF - The unit prices are not the same ### Cause: Usually on the PDF the unit price with included taxes is displayed. ### Solution: Create a xpath to compute the unit price in the same way as the XML. opw-4078177 Forward-Port-Of: odoo/enterprise#67721