80a99157e2905e06d2da6e60ca7f731f2f03c892
This commit improves the performance of the 'sale_price_subtotal' field of event.event by refactoring the way it's computed. The previous naive implementation looped on sale.order.lines linked to the event and performed a currency conversion for every single line. This leads up to thousands of requests to fetch the conversion rate and sum up everything on a real production database like Odoo.com . This new implementation groups the amounts by currency and performs a single conversion per currency (factored by the number of events in 'self'). It has the drawback of using 'today' to fetch conversion rates instead of the actual SO date like previous implementation. We (aka: all main POs as this decision was discussed) consider that as an acceptable trade-off to increase performances. Task ID-2335287 closes odoo/odoo#58650 X-original-commit: a4c4b03a09ffc08842f44b5759e3c7298cfbd915 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%