Monday, May 18, 2026
2 changes · saas-18.2
Resolved issues and error corrections
This update fixes a problem where users accessing bank reconciliation within a child company couldn't correctly determine the currency. The fix adds a temporary 'sudo' command to access the necessary currency information, ensuring accurate bank reconciliation functionality for all company setups, including those with child companies.
Original PR description
The bug is easy to reproduce, but niche. 1. Have a company set up with a child company 2. Have a non admin user with administration rights for accounting 3. Create a bank statement in a journal with no set currency_id and fully reconcile it 4. While only in the child company, try to access the bank reconciliation widget -> access error The error occurs because of how journal_currency_id is computed on the bank rec widget. The fallback value for the currency is derived from the journal_id.company_id.currency_id which is inaccessible from the child company. To circumvent this, we just add sudo() to the call. Forward-Port-Of: odoo/enterprise#117005
This update resolves a restriction in the l10n_mx_edi module, allowing credit notes (out-of-funds) to be configured with the Payment Policy (PPD) setting, as required by the Mexican SAT portal. Previously, this functionality was unavailable, causing potential compliance issues. This change ensures accurate CFDI generation and reporting for Mexican businesses.
Original PR description
Currently, credit notes cannot be PPD (payment_policy), however, SAT portal allows it. **STEP TO REPRODUCE** 1. Install the l10n_mx_edi module. 2. Create an invoice with PPD (either changing it or through payment terms). 3. After send CFDI, generate a credit note and try to set PPD **FIX** Allow move_type = 'out_refund' to be PPD. Task-6049654 Forward-Port-Of: odoo/enterprise#114886