faeeea76e967bcb187b2c3fe7cab576b09366153
Before this commit, when creating a new record, there is no `_currentClientId` set in the wysiwyg as there is no collaboration setup for new records. When the user save the record, there is a call to `Wysiwyg.resetEditor` but as the `OdooEditor.collaborationSetClientId` was called before `Wysiwyg.setupCollaboration`, the `_currentClientId` was not set. That lead to the `OdooEditor._collabClientId` being undefined, which lead `OdooEditor.serializeNode` to not serialize the node through the function `serializeNode`. So unless the client A reload it's page, if another client (B) open the same record and synchronize with client A, client A will send it's history when `get_history_from_snapshot` is triggered but no `_historySteps` mutations nodes will not be serialized. So when client B will receive the steps in `historyResetFromSteps`, the code will crash. After this commit, the proper order will set the _currentClientId in time because `collaborationSetClientId` is set after `setupCollaboration`. task-3359732 closes odoo/odoo#125599 X-original-commit: 85acd380cab34ca507251c8b232520c76f2a3e58 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%