odoo/odoo#198123

Created by Pedram Bi Ria (pebr)
Merged at 1c7a8b1c37a153f7c3b673df53d3997f9c25fd00

Statuses:

label
odoo-dev:saas-18.1-pos-opw-4584930-pebr
head
c79c4b0ec8001ea656c90b2e029e988cec6fbf40
merged
8 months ago by POS IoT, Joseph Caburnay (jcb)
odoo/odoo
saas-18.1 #198123
saas-18.2 #198692
saas-18.3
saas-18.4
19.0
master #199745

[PERF] point_of_sale: improve loading performance

Before this commit, loading the PoS with several products was slow due to inefficient data handling. The addItem function operated in O(n) time and, because it was called repeatedly over datasets, this led to major performance issues.

After this commit, addItem now runs in O(1) by using a map/dictionary approach. This significantly reduces loading times for PoS when many products are present.

opw-4584930


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr