From a144eae31d859ddf50ef29b33c9fa629616e7523 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Mon, 19 Sep 2022 11:00:04 +0200 Subject: [PATCH] [fix] error display compact chatter --- static/src/xml/mail_widget.xml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/static/src/xml/mail_widget.xml b/static/src/xml/mail_widget.xml index dd41bf7..7057d96 100644 --- a/static/src/xml/mail_widget.xml +++ b/static/src/xml/mail_widget.xml @@ -14,16 +14,18 @@ > <xpath expr="//div[hasclass('o_Composer_actionButtons')]" position="before"> <!-- New boolean button in composer --> - <div class="o_Composer_Restriction" style="margin-top: 10px;"> - <input - type="checkbox" - id="oe_restricted_message" - t-on-click="_onClickRestriction" - /> - <label - for="oe_restricted_message" - > Restreindre le message à mon UR</label> - </div> + <t t-if="!props.isCompact"> + <div class="o_Composer_Restriction" style="margin-top: 10px;"> + <input + type="checkbox" + id="oe_restricted_message" + t-on-click="_onClickRestriction" + /> + <label + for="oe_restricted_message" + > Restreindre le message à mon UR</label> + </div> + </t> </xpath> </t> -- GitLab