Sunday, August 23, 2026
9 changes · master
Enhancements to existing features
When the field service planning stock module is installed, stock lot information is now calculated for upcoming shifts and shifts in the current week that have a customer. This helps users see the expected stock details on recent schedules right away, avoiding confusion when checking this week's work.
Original PR description
Before this commit, when the module `planning_field_service_stock` is installed, `_compute_lot_ids` in planning.slot model will only be triggered for all shifts in the future with a state in draft and a customer set. That condition is a bit annoying since the user could think the feature does not work if he checks a shift the first day of the week. This commit reviews the condition to compute lot_ids for all shifts in the future or in the current week if those shifts have a customer set to make sure the lot_ids is computed for the most recent shifts. task-6470210
This update adjusts performance test expectations for Knowledge following related Discuss changes around meeting chats, channel settings permissions, and important notification counters. It helps keep automated validation aligned with the expected system behavior while supporting smoother post-meeting collaboration and clearer notifications.
Original PR description
This commit adds an action in Discuss to convert a meeting into a group chat, allowing participants to continue the conversation in a dedicated group chat after the meeting. It also adds a check when writing `default_display_mode`, ensuring that only channel owners and database admins can update it. Additionally, this commit adds a new `important_notification` message subtype to display the notification counter in Discuss when an important notification is received. Task-6470475
Resolved issues and error corrections
This fixes a crash when Odoo converts work-hour values that round up to the next hour, such as 16.9959 becoming 17:00. It helps prevent errors in business processes that rely on computed or aggregated time values, while keeping normal time conversions unchanged.
Original PR description
### Bug `odoo.tools.date_utils.float_to_time` builds the minutes with a rounding step: ```python return time(int(integral), int(float_round(60 * fractional, precision_digits=0)), 0) ``` When the…
### Bug
`odoo.tools.date_utils.float_to_time` builds the minutes with a rounding step:
```python
return time(int(integral), int(float_round(60 * fractional, precision_digits=0)), 0)
```
When the fractional part of the hour is high enough, `round(60 * fractional)`
rounds up to a full **60**, and `time(hour, 60)` is invalid:
```python
>>> float_to_time(16.9959)
ValueError: minute must be in 0..59, not 60
>>> float_to_time(8.999)
ValueError: minute must be in 0..59, not 60
```
Any hours value whose fractional part is ≥ ~0.9917 hits this — which happens
easily with computed/aggregated work-hour floats.
### Fix
Carry the rounded-up minute into the hour, and return `time.max` when that carry
reaches the end of the day (mirroring the existing `hours == 24.0` case):
```python
if minute == 60:
hour += 1
minute = 0
if hour >= 24:
return time.max
```
`float_to_time(16.9959)` now returns `time(17, 0)`, `float_to_time(23.9959)`
returns `time.max`, and regular values are unchanged.
Adds `TestFloatToTime` in `test_date_utils.py` covering the carry, the
end-of-day carry, and regular values.
Forward-Port-Of: odoo/odoo#280807The tooltip for the Sales Order Expiration field was rewritten to fix a grammar issue and make the wording more natural. This improves clarity for sales users when they review or create quotations and sales orders.
Original PR description
Steps to produce: --- - Install the Sales module. - Create a new Sales Order. - Hover over the `Expiration` field. Issue: --- - The help text of the Expiration field contains a grammatical error and the overall sentence is slightly awkward. Improve the help text to make it grammatically correct and more natural. opw-6481226 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#283845 Forward-Port-Of: odoo/odoo#283187
This fixes an issue where customer sale order line lookup could fail when project task billing filters included list-based values. The change preserves existing caching while ensuring the original search criteria are used correctly, improving reliability for timesheet-related sales workflows.
Original PR description
- Avoid converting list values in `_get_last_sol_of_customer_domain` to an invalid domain structure when computing the last sale order line of a customer. - Fix by using `str(domain)` as the cache key instead of the domain itself, while still passing the original `domain` to `search()`. This keeps the per-domain caching behavior intact and works for any domain, regardless of whether it contains list values. task-6425335 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#281897
The mail composer now safely ignores Escape and arrow-key presses in the “Continue with Full Composer?” popup instead of triggering an error. This prevents a user-facing crash when returning to a draft note in the chatter, improving reliability for everyday communication workflows.
Original PR description
Reproduction steps: - Open a record that has a chatter where you can log notes - Start logging a note in the composer - Close the composer - Click log note again - See "Continue with Full Composer?" popup - Hit escape, up, or down - See traceback This shouldnt really do anything, so this fix makes it do nothing instead of crashing. opw-6476660 Forward-Port-Of: odoo/odoo#283389 Forward-Port-Of: odoo/odoo#282803
Mentions in sub-channels now work correctly when a contact is linked to more than one active user. This prevents an error that could block administrators and ensures the contact is invited when at least one linked user allows channel notifications.
Original PR description
Before this commit, mentioning a partner that has two active users in a sub-channel ended on: ValueError: Expected singleton: res.users.settings(77, 80) This happens because the channel notification setting is read through res_users_settings_id, a Many2one on res.users, so two users give two settings records and reading a value on them asks for a singleton. Only an administrator reaches it, as the res.users.settings rule limits everyone else to their own settings. This commit fixes the issue by inviting the partner as soon as one of its users did not turn channel notifications off. Forward-Port-Of: odoo/odoo#283912 Forward-Port-Of: odoo/odoo#283805
This fixes an issue where switching between chatter filters could incorrectly show an empty result even when messages existed. Users will now see the correct messages when changing filters, improving reliability in communication views.
Original PR description
Previously, when a chatter filter returned no messages, the empty search term was kept as the last empty term. As every empty term starts with an empty term, switching to another filter could incorrectly skip the next fetch and leave the filter empty. This PR ensures that empty results are only remembered for non-empty search terms, so switching between chatter filters always fetches the appropriate messages. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#281980
Fixed an issue where unselecting a Timesheet Assistant suggestion could leave the previous project or task selected. This prevents timesheets from being created with outdated project details when users switch between suggestions.
Original PR description
Steps to reproduce: ------------ - install timesheet_grid. - activate assistant. - select a suggestion and then unselect it. - select a different project suggestion. Issue: ----------- the project from the previous suggestion remains selected. cause: --------- currentRecord is not reset when a suggestion is unselected, so the previous suggestion's project and task are still reused. Fix: --------- reset currentRecord to null when the suggestion is unselected and showCreateForm is false. Effected pr-https://github.com/odoo/enterprise/pull/126450 task-6482312 Forward-Port-Of: odoo/enterprise#128374