[FIX] web: newline on M2O Avatar Field

Since the `Many2OneAvatarField` field was rewritten in OWL component,
there is a newline between the image and the input.

We apply a `d-flex` on the parent to fix the problem.

Steps to reproduce:
* Go to Helpdesk
* Select a ticket
* The field `Assigned to` is on two line => BUG

X-original-commit: 1c88a43a4332ea4fa21ae2b04fdb8869300250d8
Part-of: odoo/odoo#101835
This commit is contained in:
Romeo Fragomeli
2022-10-02 20:57:43 +02:00
parent 9331ac07d1
commit 077901cd3e
@@ -2,7 +2,7 @@
<templates xml:space="preserve">
<t t-name="web.Many2OneAvatarField" owl="1">
<div>
<div class="d-flex">
<span class="o_m2o_avatar">
<span t-if="props.value === false and !props.readonly" class="o_m2o_avatar_empty"></span>
<img t-if="props.value !== false" t-attf-src="/web/image/{{props.relation}}/{{props.value[0]}}/avatar_128" />