[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) <trj@odoo.com>
Signed-off-by: abla001 <abla@odoo.com>
This commit is contained in:
Abdelouahab (abla)
2023-01-20 21:57:01 +01:00
parent 8da1dacef2
commit 0de36d6ca3
2 changed files with 1 additions and 5 deletions
@@ -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;
}
@@ -17,7 +17,7 @@
</div>
</td>
<td t-if="!env.isMobile">
<t t-esc="shortAddress" />
<t t-esc="props.partner.address" />
</td>
<td class="partner-line-email" t-if="!env.isMobile">
<div t-if="props.partner.phone">