Daily updates from Odoo
Thursday, April 25, 2024
14 changes
2 changes
Enhancements to existing features
This update enhances how Odoo handles Peppol documents by allowing other modules to save them to alternative locations instead of just a journal. This increased flexibility improves integration capabilities and data management for Peppol-related processes.
Original PR description
Currently we are able to receive Peppol documents in a specific journal. This change allows other modules to hook into the saving process of new Peppol documents to save them somewhere else than directly in a journal. [task-3519604](https://www.odoo.com/web#id=3519604&model=project.task&view_type=form) Related to https://github.com/odoo/enterprise/pull/57018 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update enhances the validation process for HSN/SAC codes used in Odoo's Indonesian localization. Previously, validation applied to both sales and purchases, but now it's focused solely on sold products to ensure accurate compliance with Indonesian tax regulations. This change improves data integrity and reduces potential errors.
Original PR description
Before this PR: -------------------------------- - Validation check applied to both sold and purchased products. After this PR: ------ - Validation now applies to sold products only, ensuring compliance accuracy. Task Id: 3805678
7 changes
Enhancements to existing features
Accounting reports can now define custom grouping options beyond standard journal item fields. This gives businesses more flexibility when building specialized reports, such as Intrastat, using custom reporting engines.
Original PR description
Before this commit, the values allowed into the groupby field of account.report.line were restricted to only fields of account.move.line. This, however, was a bit too restrictive for some custom reports we'd like to convert to custom engines (in our case, Instrastat Report), so we decided to solve that by introducing a new hook on the custom handlers, allowing the definition new custom values for the groupby, to use them later on in some custom engines.
This update documents hidden fields that still need to remain in system views and helps identify ones that are no longer necessary. It improves maintainability and reduces unused configuration without changing day-to-day user workflows.
Original PR description
Since https://github.com/odoo/odoo/pull/137031 the invisible fields are add automatically (invisible and readonly) if they are used by python expressions in views (invisible, required, readonly, context, domain...). The mandatory invisible field must be commented just after the field tag. The comment must indicate what is the technical requirement to be present. The goal is to clean all views, improve the comprehention of the addons and remove dead code.
The Documents activity list now gives the “Request a Document” button the same hover styling as related activity actions. This creates a more consistent and polished experience for users managing document requests.
Original PR description
Give the "Request a Document" button of the activity list the same style on hover as the activity elements. Task-3862008
The Helpdesk portal search experience has been updated to better match the internal back-office view, with clearer search fields, filters, and grouping options. Ticket description search was removed to improve performance, while portal users gain better ways to search and group related ticket timesheets.
Original PR description
This PR aims to bring the portal search view closer to that of the back end. In order to do that, it adds, removes and reorganizes some search fields, filters and groupbys. Community: https://github.com/odoo/odoo/pull/132877 Task-3444823
The Australian payroll termination process has been streamlined to make ending employee contracts easier and more accurate. Updates to termination payments, payslip handling, salary rules, and employee views help payroll teams manage final payments with fewer manual steps and clearer information.
Original PR description
This will improve the flow for terminating an employee's contract. Task: 3822626
Odoo no longer includes selected company IDs in URLs for several apps, making shared links easier to read and preventing them from changing a user's active companies. When access depends on company permissions, users get a clearer path to switch to a company that can open the record.
Original PR description
*: [account_reports, documents, social, stock_barcode, web_studio]
The aim of this commit is to remove the companies IDs from the URL, and
use only the cookies to store the selected companies.
This commit will also improve the handling of access errors. If a user
encounters an access error, if one of its allowed companies has access
to the record, a button to switch to the correct company is shown.
The purpose of this is double: to have more human-readable URLs (part of
the task id : 3557575), and to avoid modifying the current selected
companies when clicking on a shared URL.
Note that this commit also modify the way the companies IDs are encoded
on the cookies. Before this commit, the IDs were separated by a comma
(",") and they were encoded as \054 by the server side but not by the
client side. Now, we use a dash ("-") to have the same encoding in both,
server side and client side.
task-id 3792021
Co-authored-by: Damien Bouvy <dbo@odoo.com>This change adds the ability to generate XLSX bank payment files from UAE payroll records. It helps payroll teams prepare bank submissions more efficiently and reduces manual spreadsheet work.
Original PR description
Change adds xlsx file for UAE bank generation. Comes from this PR (16.0): https://github.com/odoo/enterprise/pull/59194 Task: 3651407
5 changes
Enhancements to existing features
This update ensures that mandatory analytic distribution requirements are properly enforced when reconciling bank statements. Previously, users could bypass these requirements during reconciliation, which could lead to incomplete financial records. The fix also resolves an issue where the reconciliation interface would become unresponsive if an error occurred during the process.
Original PR description
Mandatory Analytic Plans should be mandatory. This was not checked when reconciling a bank statement. This commit adds a check to ensure that the analytic distribution is correct when reconciling a bank statement. Task: 3864633
The aged payable accounting report has been optimized to load significantly faster. Previously, the system was processing unnecessary data that was filtered out later, causing timeouts on large databases. The fix streamlines the data retrieval process, reducing load times from over 15 minutes to just seconds for large companies.
Original PR description
# Issue: The query for constructing the aged_payable accounting report takes too long to load. # Analysis: When a database has lots of companies, it's likely to have a huge number of rows in the…
# Issue: The query for constructing the aged_payable accounting report takes too long to load. # Analysis: When a database has lots of companies, it's likely to have a huge number of rows in the account_partial_reconcile table. Currently, the entire account_partial_reconcile table is being iterated in the report generation, only to be filtered out later on in the query. This superfluous computation is extremely inefficient and it could be easily avoided by correctly using LATERAL JOIN syntax to make use of the filters applied later on.  # Fix: Use the correct condition inside the lateral join to filter on account_move_lines that are already filtered later on. # Benchmark: ### Report loading time | # account partial reconcile lines | # account move lines | Company size | Before | After | | --- | ------ | ------ | ------| ----- | | 588503 | 2339215 | Large | 15m+ (timeout) | ~14.02s | | 5761 | 27635 | Medium | 15m+ (timeout) | ~3s | | 11 | 1513 | Small | 7.69 | ~1.6s | #### Total number of account partial reconcile: 3279438 #### Total number of account move lines: 10688953 # Related ticket: opw-3819017 Forward-Port-Of: odoo/enterprise#61036
This improvement enhances the Latin American check payment module to support handling multiple checks within a single payment transaction. Users can now edit and manage multiple checks more efficiently when processing payments, streamlining the payment workflow for businesses operating in Latin American markets.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update adds automated testing for the drag-and-drop functionality when rearranging website columns on mobile devices. Following a previous improvement to support mobile ordering, this change ensures the feature works correctly by adding a test tour that validates the drag-and-drop flow for mobile-ordered columns.
Original PR description
Commit [1] improved the drag and drop to also consider elements having a mobile order. As a follow-up, this commit adds a tour testing the drag and drop flow when moving mobile ordered columns. [1]: https://github.com/odoo/odoo/commit/7b27385dba36c2e741d96e76ad5d847d09f2b084 task-3744643 related to opw-3697962
The internal note feature, previously limited to restaurant POS systems, is now available for all shop types. This improvement allows POS users to add internal notes to order lines in any shop configuration, making the feature more widely accessible and useful across different business models.
Original PR description
Allow pos users to have the "internal note" button available even in non-restaurant shops. Task-ID: 3878947 **Before:** Internal note button is only for restaurant. <img width="1800" alt="Screenshot 2024-04-22 at 15 56 44" src="https://github.com/odoo/odoo/assets/3245568/b923a1f5-e7fe-4a8a-b624-c0c31135c4fb"> **After:** <img width="1800" alt="Screenshot 2024-04-22 at 15 55 28" src="https://github.com/odoo/odoo/assets/3245568/fc82f296-7598-46b7-bbe0-0eb199872515">