11289fd128827587f6ed3fc5beed28f461c0e039
PURPOSE Simplify 'mail.tracking.value' model and code. Remove unnecessary fields and computation. Make code easier to handle and more batch-enabled. SPECIFICATIONS SPEC 1: prepare all tracking values at same code place Delegate all computation of tracking values into the 'create_tracking_values' method. Curently part of it (currency field) is done in the caller. Better split code per feature. Method is also made private, as it is not required to expose it. SPEC 2: cleanup tracking value formatting methods and calls Code used to display tracking value can be simplified: remove unnecessary wrappers, make code easier to read, avoid composition of field name but use a mapping instead (easier to grep 'old_value_char' when it is effectively used). Ensure code always calls '_tracking_value_format' to ease future improvements and have all formatting code being batch-enabled. SPEC 3: simplify Chatter formatted value structure 'fieldType' is currently added in old and new values. As it is a field property it can be moved higher in the formatting result to be included only once. Also add 'fieldName', the column name, to the formatted results as it will soon help various tool methods. Moreover it makes sense to have the source of the tracking as the real column name, in addition to its string and type. Task-3345979 (Mail: Simplify tracking model) Part-of: odoo/odoo#124182
…
…
…
…
…
…
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%