Daily updates from Odoo
Monday, April 22, 2024
6 changes
4 changes
Enhancements to existing features
Knowledge comments now save a short copy of the text or image area they refer to, so the comment remains understandable even if the original article content changes. Longer saved references can be expanded with a Read More option, improving collaboration and review clarity.
Original PR description
This commit adds the storage of text anchors for comments. Before this commit we didn't store the text's anchors and displayed it dynamically. The advantage of this approach is that we didn't need to store any text inside the DB for each comment => this could've led to big sums of data for not a big gain. The disadvantage is that if the anchor doesn't exist anymore and we lose the context of the comment. Now, a new field `article_anchor_text` stores up to 1200 characters of the anchor's text. When the anchor is longer than 50 chars we display a Read More button that will display the anchor's stored text. task-3672422
Electronic payment flows in Point of Sale now start automatically instead of waiting for extra cashier input. This speeds up checkout, reduces manual steps, and helps customers complete card payments more quickly.
Original PR description
- changed the functionality of the electronic payment button to be automatic instead of waiting for user input. TASK-ID: 2770467 Related: https://github.com/odoo/odoo/pull/153659
The delivery IoT settings screen now presents the Scales feature explanation more clearly. The text is better aligned with its section and separated from the documentation link, making the information easier for users to read.
Original PR description
This PR introduces two minor changes to `stock.picking.type` model: * align the explanation of "Scales" feature with its section. * add a line break between the explanation and the link to the documentation. COM PR: odoo/odoo#159495 Task-3644665
Employee managers now receive the right payroll-related access through their existing contract management role. This keeps payroll collaboration features, such as discussion chatter, limited to appropriate manager users and simplifies permission management.
Original PR description
Make hr_contract_employee_manager imply hr_payroll_employee_manager
2 changes
Enhancements to existing features
This update significantly speeds up the process of validating invoices with deferred expense lines. By optimizing how the system processes multiple deferred entries, validation times are reduced by 44-81% depending on the number of lines, making it much faster to process complex invoices with deferred accounting items.
Original PR description
## Description Validating invoices that have a lot of lines that needs to be deferred is taking extremely long time. Most of the bottleneck is from `_generate_deferred_entries`. We've batched some of the ORM calls to avoid repetitive calls to slow methods in `account_move` like `create`, `__set__`, `_post`. ## Benchmark Tested on a saas-16.4 DB: validating an invoice with deferred lines generating on average 12 periods per line | Lines | Before (Timing / Queries) | After (Timing / Queries) | % Speed up | |-------|-------------------------------|--------------------------|------------| | 50 | 1 min / 23216 | 33.4 sec / 16713 | 44.3% | | 100 | 3 min / 46736 | 1.3 min / 33557 | 56.7% | | 230 | 17.7 min (timed-out) / 111196 | 3.4 min / 79777 | 80.7% | ## Reference opw-3815242 Forward-Port-Of: odoo/enterprise#59448
Payment system log messages now clearly indicate whether a payment request was initiated by a customer or by the system. This improvement makes it easier for business users and support teams to understand payment activity and troubleshoot issues by providing better visibility into who triggered each payment request.
Original PR description
Before this commit: ------------------------- the log message did not clearly indicate who attempted to request a payment. After this commit: ----------------------- the message specifies whether the payment request was initiated by the customer or by the system. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr