From 330f5ddb8656d96a1ab42bc8ae8a4d9acba9eedf Mon Sep 17 00:00:00 2001 From: "Pedram (PEBR)" Date: Fri, 18 Aug 2023 09:01:17 +0000 Subject: [PATCH] [FIX] point_of_sale: always show selected partner at top of list Before this commit, the selected partner was not shown at the top if its id was outside those first 1000, because the partner list only searched the first 1000 partners to display. With this commit, the selected partner will always display at the top of the list as expected, even if its id is outside the first 1000 partners queried. opw-3470824 closes odoo/odoo#132510 X-original-commit: a55a5951ae97c5b702ee7cde525a24df68e1e1b1 Signed-off-by: Joseph Caburnay (jcb) Signed-off-by: Pedram Bi Ria (pebr) --- .../static/src/app/screens/partner_list/partner_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/app/screens/partner_list/partner_list.js b/addons/point_of_sale/static/src/app/screens/partner_list/partner_list.js index 0fecd6ed6c4..30df6d746b4 100644 --- a/addons/point_of_sale/static/src/app/screens/partner_list/partner_list.js +++ b/addons/point_of_sale/static/src/app/screens/partner_list/partner_list.js @@ -109,8 +109,8 @@ export class PartnerListScreen extends Component { ); if (indexOfSelectedPartner !== -1) { res.splice(indexOfSelectedPartner, 1); - res.unshift(this.state.selectedPartner); } + res.unshift(this.state.selectedPartner); } return res; }