Tuesday, March 31, 2026
2 changes · 19.0
Resolved issues and error corrections
This update resolves an issue where the General Ledger consolidation feature wouldn't function correctly when multiple companies were selected. The fix ensures the consolidation process works reliably across all company setups, preventing errors and improving data accuracy for multi-company reporting.
Original PR description
### Issue before this commit: When opening the General Ledger consolidation with multiple companies selected, a traceback was displayed with a KeyError: 'account_code'. ### Steps to reproduce the…
### Issue before this commit: When opening the General Ledger consolidation with multiple companies selected, a traceback was displayed with a KeyError: 'account_code'. ### Steps to reproduce the issue: 1. Select two or more companies from multi company menu 2. Accounting / Reporting / Ledgers / General Ledger 3. Posted Entries, Accrual Basis button 4. Pick Consolidation 5. Error ### Cause of the issue: When more than one company is selected, the General Ledger consolidation groups journal entries by multiple parameters in an increasingly strict hierarchy. One of these parameters is account_code, which is required only in a multi-company context (as account_id alone is sufficient when a single company is selected). However, the SQL query was not properly adapted to handle this case. The account_code field was used as a grouping key but was not retrieved from the database, resulting in a KeyError. ### Reason to introduce the fix: To ensure that the General Ledger consolidation can be correctly displayed in a multi-company context and to prevent runtime errors. opw-5933074
This update restricts the invoicing and bank roles in Odoo Enterprise from using the 'Find Missing Transactions' and 'Find Duplicate Transactions' tools. This change enhances security and prevents potential misuse of these functionalities by less privileged users, while maintaining access for bookkeeper and manager roles.
Original PR description
Changed the accessibility of the role invoicing/bank to not be able to use the following functionalities: 'Find Missing Transactions' 'Find Duplicate Transactions' While keeping the access available for bookkeeper/manager roles. task-6076097