odoo/odoo#194757
Created by fw-bot
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:master-saas-18.1-fix-search-customer-manv-6GIq-fw
- head
- 5e8b0aa9ebfc724717510d0b615d92b5655044dc
- merged
- 9 months ago by Manu Vaillant (manv)
| odoo/odoo | |
|---|---|
| saas-18.1 | #194710 |
| saas-18.2 | |
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| master | #194757 |
[FW][IMP] point_of_sale: partner list infinite scroll
Fix multiple issues with partner list :
- The list was not updated when scrolling down
- When searching customers, the partner list could contains duplicate (because before this commit a Set structure was used to store objects. This wasn't working as expecting because in JS a Set use references of objects to compare them (now we use a set to store unique IDs).
- Traceback occured when following these steps :
- Open "Customer" popup
- Type "ss"
- Press "enter" => Traceback
Here is how it works now:
- When reaching 80% (scroll) of the partner list, we fetch 100 more partners and add them to the list
- When typing in search bar: search inside the fetched partner list
- Press enter in search bar: fetch new customer matching the search from database
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #194710