Thursday, April 6, 2023
2 changes · master
Code cleanup and technical improvements
This update modernizes the Point of Sale internals by removing older technical dependencies and centralizing how customer-facing displays are managed. It also adds basic testing infrastructure, helping future PoS changes be delivered with more confidence and fewer regressions.
Original PR description
This PR continues the ongoing refactoring work on the PoS. It removes the use of the legacy environment, refactors the way the customer display is handled, and introduces a bit of unit testing infrastructure. More information can be found in the individual commits Enterprise: https://github.com/odoo/enterprise/pull/39123
Message lists now load in a continuous order, preventing gaps that could make some messages unreachable when scrolling or reloading conversations. This improves reliability in Mail, Discuss, and live chat conversations and prepares the system for future conversation jump features.
Original PR description
Adapt code of message fetch so that fetching of (needaction) messages are controlled in a way to keep continuous sequence of messages at all time. This code design solves the "holes" problem in a message list by not allowing holes. This fixes many scenario that generated these holes, resulting in unfetchable messages. Example of such a scenario: - post 40 messages - post a new message that is reply of the oldest message - page reload and scroll up until load more => 10 messages are missing in-between replied message and following message (that should have been 11 messages apart) This code is also in preparation to allow jumps in a conversation.