bd8a39d8aa1e02d5f050f1ed72f703a511525795
Followup of odoo/odoo@de7c119e66 where the parent finding was incorrectly refactored. Indeed due to a typo new_parent was not updated. Instead of getting higher in the parent chain until the first message, only the first parent's parent was considered. Moreover ``_mail_flat_thread`` is incorrectly taken into account. Due to the hereabove issue it was not really impacting discussion channels, as anyway parent finding was not working. New parent management, depending on ``_mail_flat_thread`` is now * ``_mail_flat_thread`` True: no free message. If no parent, find the first posted message and attach new message to it. If parent, get back to the first ancestor and attach it. We don't keep hierarchy (one level of threading); * ``_mail_flat_thread`` False: free message = new thread (think of mailing lists). If parent get up one level to try to flatten threads without completely removing hierarchy; Tests show that parent is correctly flattened on business documents and left untouched for channel-like documents. Task-2822652 (Mail: fix parent message fetch / flattening) X-original-commit: 86f21c1f384e37a4555b4b1ce4831904c8d40b6f Part-of: odoo/odoo#89328
…
…
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%