[FIX] base: remove display flex from parent div

Phone and mobile numbers are not well displayed
on contact widget..
This is because of the display flex that split
the column in two if there is too much information.
We remove the display flex + flex column as
all the children of the element are div, which is
a block element, therefore they are already arranged
one on top of the other.

Steps:

- Having a contact X with full address informations
  (address, name, phone)
- With purchase module, you see the bug by
  printing a RFQ for the contact X

opw-3626486

closes odoo/odoo#146455

Related: odoo/enterprise#53201
Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
This commit is contained in:
guva-odoo
2023-12-22 10:36:24 +00:00
parent fdfe918eec
commit 00b7bc6d0e
@@ -22,7 +22,7 @@
<t t-if="object.country_id.name_position != 'after'">
<t t-call="base.contact_name"/>
</t>
<div class="d-flex flex-column gap-2" itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress">
<div class="gap-2" itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress">
<div t-if="address and 'address' in fields" t-attf-class="d-flex align-items-baseline gap-1">
<i t-if="not options.get('no_marker')" class="fa fa-map-marker fa-fw" role="img" aria-label="Address" title="Address"/>
<span class="d-block w-100 lh-sm" itemprop="streetAddress" t-esc="address"/>