Skip to content

Conversation

@manv-afk
Copy link
Contributor

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

task-id: 4489331

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

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

task-id: 4489331
@manv-afk manv-afk requested a review from davidmonnom January 22, 2025 13:33
@robodoo
Copy link
Contributor

robodoo commented Jan 22, 2025

Pull request status dashboard

@C3POdoo C3POdoo requested a review from a team January 22, 2025 13:36
@C3POdoo C3POdoo added the RD research & development, internal work label Jan 22, 2025
Copy link
Contributor

@davidmonnom davidmonnom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

robodoo pushed a commit that referenced this pull request Jan 22, 2025
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

closes #194710

Task-id: 4489331
Signed-off-by: David Monnom (moda) <moda@odoo.com>
@robodoo robodoo closed this Jan 22, 2025
@fw-bot fw-bot deleted the saas-18.1-fix-search-customer-manv branch February 5, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants