From 0de36d6ca3d58dbad737e338a5c9c6b242e1bcd2 Mon Sep 17 00:00:00 2001 From: "Abdelouahab (abla)" Date: Thu, 12 Jan 2023 15:33:11 +0000 Subject: [PATCH] [FIX] point_of_sale: show full address To Reproduce ============ on POS go to customer, on the customers list we only display a short address. which gives bad experience to the user. Solution ======== The address information displayed was reduced in early 15 because it was often too long and caused rendering issues, on both desktop and mobile. On 16 we have more space, so we bring back the full address. opw-3123832 closes odoo/odoo#110549 X-original-commit: 1d546031ac74241eb9d7eb090a5291aa70371d3f Signed-off-by: Trinh Jacky (trj) Signed-off-by: abla001 --- .../static/src/js/Screens/PartnerListScreen/PartnerLine.js | 4 ---- .../static/src/xml/Screens/PartnerListScreen/PartnerLine.xml | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/addons/point_of_sale/static/src/js/Screens/PartnerListScreen/PartnerLine.js b/addons/point_of_sale/static/src/js/Screens/PartnerListScreen/PartnerLine.js index cd45d0e4660..b3f6d75ac82 100644 --- a/addons/point_of_sale/static/src/js/Screens/PartnerListScreen/PartnerLine.js +++ b/addons/point_of_sale/static/src/js/Screens/PartnerListScreen/PartnerLine.js @@ -7,10 +7,6 @@ class PartnerLine extends PosComponent { get highlight() { return this._isPartnerSelected ? "highlight" : ""; } - get shortAddress() { - const { partner } = this.props; - return [partner.zip, partner.city, partner.state_id[1]].filter((field) => field).join(", "); - } get _isPartnerSelected() { return this.props.partner === this.props.selectedPartner; } diff --git a/addons/point_of_sale/static/src/xml/Screens/PartnerListScreen/PartnerLine.xml b/addons/point_of_sale/static/src/xml/Screens/PartnerListScreen/PartnerLine.xml index 8f8e432f904..52762932877 100644 --- a/addons/point_of_sale/static/src/xml/Screens/PartnerListScreen/PartnerLine.xml +++ b/addons/point_of_sale/static/src/xml/Screens/PartnerListScreen/PartnerLine.xml @@ -17,7 +17,7 @@ - +