summaryrefslogtreecommitdiff
path: root/addons/mail/models/mail_shortcode.py
diff options
context:
space:
mode:
authorRohan Patel <rop@odoo.com>2017-06-30 12:41:09 +0530
committerAaron Bohy <aab@odoo.com>2017-09-11 12:20:49 +0200
commit8c1f6a7cc6aea43aa9ef99b7b7ae70f5abbe3d92 (patch)
tree1f96835762a6c57fadc6ba4f11409b5406856b5d /addons/mail/models/mail_shortcode.py
parenta58fb415fc6465b1a150d7cc295c260b6ac0b9d5 (diff)
[IMP] mail,*: replace emojis by unicode in chat messages
*im_livechat,rating. Emojis are now encoded in unicode characters in messages. This allows to copy/paste messages including emojis, ensures that emojis are properly displayed in mail interfaces (at least those that support unicode, e.g. GMAIL, counter-example: outlook), and allows the user to directly use emojis of its smartphone in mobile. This commit also adds several new emojis. PR #11095
Diffstat (limited to 'addons/mail/models/mail_shortcode.py')
-rw-r--r--addons/mail/models/mail_shortcode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/models/mail_shortcode.py b/addons/mail/models/mail_shortcode.py
index 780a5a746c8..119e9d88234 100644
--- a/addons/mail/models/mail_shortcode.py
+++ b/addons/mail/models/mail_shortcode.py
@@ -15,6 +15,7 @@ class MailShortcode(models.Model):
_description = 'Canned Response / Shortcode'
source = fields.Char('Shortcut', required=True, index=True, help="The shortcut which must be replaced in the Chat Messages")
+ unicode_source = fields.Char(string='Unicode Character', help="The source is replaced by this unicode character in the Chat Messages")
substitution = fields.Text('Substitution', required=True, index=True, help="The escaped html code replacing the shortcut")
description = fields.Char('Description')
shortcode_type = fields.Selection([('image', 'Smiley'), ('text', 'Canned Response')], required=True, default='text',