diff --git a/static/src/xml/mail_widget.xml b/static/src/xml/mail_widget.xml index dd41bf732ff444743bac65946e082165d6c38255..7057d9601736f7df39944c7a1459e054f9edc35b 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>