odoo/odoo#204485
Created by fw-bot
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:saas-18.2-17.0-homeworking-status-gito-426946-fw
- head
- 61216b3f7a05dbda8c07dc4fcd9776da70cdcd34
- merged
- 7 months ago by Discuss, Giorgio Tocco (gito)
odoo/odoo | |
---|---|
17.0 | #199936 |
saas-17.4 | #202776 |
18.0 | #203903 |
saas-18.1 | #204307 |
saas-18.2 | #204485 |
saas-18.3 | |
saas-18.4 | |
19.0 | |
master | #205269 |
[FW][FIX] bus, hr_holidays, mail: inconsistent homeworking im status
Before this commit, the IM status icon shown when the user is homeworking won't always be precise. This happens because of the IM status refactoring (#174814).
Steps to reproduce:
1. Setup user Marc Demo as homeworking in the current day
2. As Marc Demo open Discuss
3. As Mitchell Admin open the conversation with Marc Demo -> the correct home online icon is shown
4. As Marc Demo close all Odoo tabs -> user goes offline and Mitchell Admin sees the correct offline icon
5. As Marc Demo reopen Discuss -> Mitchell Admin sees the circle icon instead of the home icon
This commit fixes the issue by sending the user im_status information directly from its indentity model (res.partner
or mail.guest
) in the bus.bus/im_status_updated
notification payload. This ensures that any overrides on the im_status
field will be taken into consideration without having to re-establish the override client side.
presence_status
now represents the status value of the presence model, while im_status
represents the status value of the identity model.