1eba78381d0b8053d6244dbc0025018aa66c7ac1
This commit refactors mail.thread message_auto_subscribe method. Purpose of this method is to automatically subscribe people to documents in several scenarios * followers from an umbrella record to sub-records, like followers of project added to tasks; * responsible of documents, in addition to sending notifications to newly added responsibles; * some specific use case depending on some applications like managers for expense reports; New auto subscription now uses the recently introduced method optimized to compute new or to-update followers. It is also rewritten so that overriding it is easier. Indeed simply overriding _message_auto_subscribe_followers is now sufficient to add new followers to a record, depending on some updated values. It is also now possible to specify a template to use for some specific notification, if requested. Fetching auto-subscription data in subtype is also optimized. It is now done in a single SQL query. All data related to parent (like project) and child (like task) as well as default and internal-only data is prepared in a single query and given back to auto subscription process. This allows to gain queries in auto subscription based on subtype like project / task use case. This commit has a great impact on performance counters. Complex use cases involving tracking and responsible notifications gain about 30 queries which is about 15% of their total query count.
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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%