summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/text_emojis.xml
diff options
context:
space:
mode:
authorOdoo's Mergebot <xmo+roboto@odoo.com>2019-12-13 12:21:00 +0100
committerGitHub <noreply@github.com>2019-12-13 12:21:00 +0100
commit3f43ea79c992e3bc6e45da6f9fb03714c0e2ce0d (patch)
tree63482a9dc79175230b1047a5ef0285b50a90fb57 /addons/mail/static/src/xml/text_emojis.xml
parent0ddfbab90f68b4a7af7548471742f9a1dd20ae58 (diff)
parent8bee94f2607e27cf89ffa036b8921503b67fc340 (diff)
[MERGE] mail, social: allow support of emojis in char fields in mail applications
PURPOSE Allow to use the text field with integrated emojis support in other apps notably mass mailing SPECIFICATIONS This purpose is achieved in several steps, each done with different commits to ease understanding * move emojis mixin and FieldTextEmojis field definition from social to mail application. Rename emojis namespace accordingly; * allow emojis support in chat fields through new field widget; * use this new widget in mass mailing subject field; * perform some code cleaning; See sub commits for more details. LINKS Task #2117238 PR #40045 Enterprise PR odoo/enterprise#6630 Related: odoo/enterprise#6630 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/mail/static/src/xml/text_emojis.xml')
-rw-r--r--addons/mail/static/src/xml/text_emojis.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/addons/mail/static/src/xml/text_emojis.xml b/addons/mail/static/src/xml/text_emojis.xml
new file mode 100644
index 00000000000..0343d86b7b7
--- /dev/null
+++ b/addons/mail/static/src/xml/text_emojis.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates xml:space="preserve">
+ <div t-name="mail.EmojisDropdown" class="o_mail_emojis_dropdown o_mail_add_emoji dropdown">
+ <button class="btn btn-block dropdown-toggle px-3 py-1"
+ type="button"
+ data-toggle="dropdown"
+ aria-haspopup="true"
+ aria-expanded="false"
+ title="Add an emoji">
+ <i class="fa fa-smile-o"/>
+ </button>
+ <div class="dropdown-menu dropdown-menu-right border-0 p-2" style="width: 406px">
+ <t t-call="mail.Composer.emojis">
+ <t t-set="emojis" t-value="widget.emojis"></t>
+ </t>
+ </div>
+ </div>
+</templates>