diff options
| author | XavierDo <xdo@odoo.com> | 2018-08-14 10:47:21 +0200 |
|---|---|---|
| committer | XavierDo <xdo@odoo.com> | 2018-08-17 13:06:43 +0200 |
| commit | f83c31363149c9a9e8d47b5a502b8294bf331b05 (patch) | |
| tree | c9b66144328863a7bfe29267146c1b75e8199db4 /addons/im_livechat_mail_bot/models | |
| parent | dc5462db5168d62de6e6faf54a7ce9e320688e57 (diff) | |
[IMP] mail_bot: improve answers, initialisation and others
1. Odoobot shouldn't talk to admin when demo data are installed
Odoobot will talk to a user on it's first connection, meaning that
a dev will see this chat window a lot. The state disabled is not a
real state but is explicit, the odoobot wont be initialized in this
case. It is still possible to test odoobot flow with demo user.
2. remove old odoobot image and update link
3. small improvements in odoobot answers
Diffstat (limited to 'addons/im_livechat_mail_bot/models')
| -rw-r--r-- | addons/im_livechat_mail_bot/models/mail_bot.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/addons/im_livechat_mail_bot/models/mail_bot.py b/addons/im_livechat_mail_bot/models/mail_bot.py index 0c042d56fab..593e3d69f63 100644 --- a/addons/im_livechat_mail_bot/models/mail_bot.py +++ b/addons/im_livechat_mail_bot/models/mail_bot.py @@ -15,17 +15,8 @@ class MailBot(models.AbstractModel): return _("That's me! 🎉<br/>Try to type \":\" to use canned responses.") elif odoobot_state == "onboarding_canned" and values.get("canned_response_ids"): self.env.user.odoobot_state = "idle" - discuss_href = 'href="/web#action=mail.mail_channel_action_client_chat&active_id=%s"' % record.id - discuss_src = 'src="/mail_bot/static/img/odoobot_discuss.png"' - chatter_src = 'src="/mail_bot/static/img/odoobot_chatter.png"' - return _("Good, you can customize your canned responses in the live chat application. <br/><br/>") + \ - _("There are 3 different ways in Odoo to interact with your colleagues: <br/>\ --via this chat window<br/>\ --via the <a href=%s>Discuss</a> application:<br/><img %s/><br/><br/>\ --or via the chatter:<br/><img %s/><br/><br/>\ -Aaaaand that's it! Enjoy discovering Odoo!") % (discuss_href, discuss_src, chatter_src) + return _("Good, you can customize canned responses in the live chat application.<br/><br/><b>It's the end of this overview</b>, enjoy discovering Odoo!") #repeat question if needed elif odoobot_state == 'onboarding_canned': return _("Not sure wat you are doing. Please press : and wait for the propositions. Select one of them and press enter.") - return super(MailBot, self)._get_answer(record, body, values, command) |
