Saturday, November 16, 2024
3 changes · 18.0
Enhancements to existing features
Discuss channel avatars now load much faster for employees, especially on large databases. This reduces delays when users first open conversations or see channel images, improving the overall responsiveness of the messaging experience.
Original PR description
## Description Following d6c6351c7f0b241578121d459943fdf2b305571e, the `ir.rule` related to discuss channels got more elaborated, with more subqueries. When loading an `avatar_128`, in an override of…
## Description Following d6c6351c7f0b241578121d459943fdf2b305571e, the `ir.rule` related to discuss channels got more elaborated, with more subqueries. When loading an `avatar_128`, in an override of `_find_record_check_access`, a repetitive domain with an `any` operator on the same left leaf. This repetitive domain + the new `ir.rule` lead to a bad postgres plan, leading to a perf regression. ## Fix We add an `auto_join=True` on `parent_channel_id` to avoid doing an additional nested sub-query coming from the `ir.rule`. This change is safe, as the comodel is the same model as the current one, and an user that has access to a subchannel, should probably already have access to its parent channel. The other improvement is an optimistic early `super()` call, which should not raise any issue for internal employees, who already should have access to the avatar. In case of an access violation, we fallback on the previous behaviour. ## Benchmark On a large database, loading an `avatar_128`, cache disabled in browser (simulating a first load) for an internal non-privileged user. | | Timings | |----------------------|-----------| | Before | 300~400ms | | `auto_join=True` | 20~25ms | | + `super()` shortcut | 13~23ms | --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Point of Sale bank payment methods must now have an outstanding account selected during configuration. This helps ensure payments are properly tracked and reduces accounting setup errors.
Original PR description
in this commit: ============ Made it mandatory to select an outstanding account while configuring the `bank` payment method in pos. Task - 4281382 Related PR: odoo/upgrade#6728
This pull request updates the MuK web theme package for Odoo 18. The business impact is unclear from the provided description, but it appears to refresh or replace a theme add-on package used for the user interface.
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