Tuesday, December 19, 2023
2 changes · master
Code cleanup and technical improvements
This change removes a duplicated setting used to track whether chat windows are minimized and relies on the existing window state field instead. It also aligns the default chat window behavior so new conversations start closed as intended, reducing inconsistencies in live chat and Discuss.
Original PR description
...as it as redundant with the `fold_state` field. This commit also changes the default value of `fold_state` from `open` to `closed` as the former behavior made the chat windows closed by default due to `is_minimized` default value being falsy. enterprise: https://github.com/odoo/enterprise/pull/52680 upgrade: https://github.com/odoo/upgrade/pull/5434 task-3624228 Co-authored-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
The Discuss chat test suite was adjusted to match a related cleanup that removed an older minimized-state field. This keeps automated checks aligned with the current product behavior and helps prevent false test failures during future releases.
Original PR description
community: https://github.com/odoo/odoo/pull/145941 upgrade: https://github.com/odoo/upgrade/pull/5434 task-3624228