8b2f887c29f4377d8ebf5a3b8e2fcd9f7660add2
In this commit we fix computation of likes and dislikes by splitting computation by usage. Computation for likes and dislikes is improved to be done using a read_group instead of browsing potentially a lot of slide.slide.partner records. This should speedup computation, even if we have to do 2 read group instead of a single big fetch. Indeed we have to take into account vote being 1 or -1 to compute both values "like" and "dislike". We also fix batch computation as it was sharing a dict. As frontend UI leads to voting one slide at a time this should have few effect on stored values. But now batch computation is correct. User vote computation is now basically a related on user_membership_id.vote. We keep the old compute method in case it was called but computation itself is now done with the other field. Task-2607416 closes odoo/odoo#85257 X-original-commit: c5b1283862264132d0c2bb1f172c25af5d74448c Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com> Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by: Munaf Bahelim <mub@odoo.com> Co-authored-by: Thibault Delavallée <tde@odoo.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%