summaryrefslogtreecommitdiff
path: root/addons/mail/models/mail_shortcode.py
diff options
context:
space:
mode:
authorXavierDo <xdo@odoo.com>2018-02-13 14:20:16 +0100
committerXavierDo <xdo@odoo.com>2018-04-09 17:19:29 +0200
commit6c381a3a16787cdf881817f8173a1d8c99bd9c21 (patch)
treef382e7c7ee358e3cce26ce198b4a140a4fd7f0ac /addons/mail/models/mail_shortcode.py
parentbd9398e24b152fdd5fc3344b6583ae6a944cb5f8 (diff)
[IMP] im_livechat, mail: replace emoji with unicode.
Remove the support to replace emojis by images. Most browser now support colored emoji or at least black and white emojis. The emojis list have been updated to ensure a correct support for most os/browser. Users have the possibility to install fonts localy if their os does not have one of the default emoji font installed. After default os emoji font, one of twemoji, emojione or noto color will be selected. The emoji list is now hardcoded in js in order to reduce the number of records in shortcodes. Also include a small fix for livechat to display message field when rating is bad. Task #36898 PR #23689
Diffstat (limited to 'addons/mail/models/mail_shortcode.py')
-rw-r--r--addons/mail/models/mail_shortcode.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/addons/mail/models/mail_shortcode.py b/addons/mail/models/mail_shortcode.py
index 119e9d88234..2accb271a60 100644
--- a/addons/mail/models/mail_shortcode.py
+++ b/addons/mail/models/mail_shortcode.py
@@ -13,11 +13,6 @@ class MailShortcode(models.Model):
_name = 'mail.shortcode'
_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',
- help="* Smiley are only used for HTML code to display an image "\
- "* Text (default value) is used to substitute text with another text")