37d797f6d6b6dffc2d18ba0c24300ffaa312b71f
Issue --> `saveChanges` at https://github.com/odoo/odoo/blob/saass-16.3/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientListScreen.js#L155 calls `load_new_partners` that calls `prepare_new_partners_domain` to compute the domain on which the res.partner model is to be searched on, after the save has been commited. The search is done to update client side res.partner data. Domain in question --> https://github.com/odoo/odoo/blob/5404f3367a611e527fcecc2dd49e683864ba4b81/addons/point_of_sale/static/src/js/models.js#L784 This domain has the potential to make `search_read` return every res.partner record and compute fields such as 'total_due' on each one of them. This presents the issue of overworking postgres when we only need to update one res.partner record. Solution --> Use the `_loadPartners` method instead to only reload the current partner being edited + saved. opw-3619941 closes odoo/odoo#157120 X-original-commit: 7477978482bc3c22338faab486d67085452b006d Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com> Signed-off-by: Aditya Dasgupta (adda) <adda@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%