43e87ea1cf59304cb2914583e646fcb82c45c17c
RATIONALE Purpose of this change to rewrite the formatting done on messages displayed on simple frontend i.e. portal chatter widget and project chatter. We stop calling 'message_format' which computes a lot of unnecessary data and sends too much information to frontend. We choose to instead manually handcraft the returned data, already tailored for frontend widget. SPECIFICATIONS Remove call to '_message_format' in 'portal_message_format'. Instead have a list of properties (fields or computation based on fields e.g. rating publisher information) that can be overridden in sub-addons. Use those to generate the data used by frontend chatter widget. Remove extra formatting or data computation done in JS files. Do it directly in 'portal_message_format' in order to have clean information sent. This change targets mainly portal and portal_rating. Making those modules Independent from backend message formatting allows to save queries and also to avoid sending useless information to the frontend. SIDE SPECS Improve 'message_format' tests, and make new specific test for its portal counterpart. Provide some fixes for bugfixes that occured during the testing of this task. Those are not crucial for stable, so currently kept in this master PR. Task-3322905 closes odoo/odoo#121104 Related: odoo/enterprise#41056 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.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%