[IMP] mail_bot: change Odoobot to OdooBot
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
{
|
||||
'name': 'Odoobot for livechat',
|
||||
'name': 'OdooBot for livechat',
|
||||
'version': '1.0',
|
||||
'category': 'Discuss',
|
||||
'summary': 'Add livechat support for odoobot',
|
||||
'summary': 'Add livechat support for OdooBot',
|
||||
'description': "",
|
||||
'website': 'https://www.odoo.com/page/discuss',
|
||||
'depends': ['mail_bot', 'im_livechat'],
|
||||
|
||||
@@ -560,7 +560,7 @@ var Message = AbstractMessage.extend(Mixins.EventDispatcherMixin, ServicesMixin
|
||||
*/
|
||||
_getAuthorName: function () {
|
||||
if (this._isOdoobotAuthor()) {
|
||||
return "Odoobot";
|
||||
return "OdooBot";
|
||||
}
|
||||
return this._super.apply(this, arguments);
|
||||
},
|
||||
@@ -572,7 +572,7 @@ var Message = AbstractMessage.extend(Mixins.EventDispatcherMixin, ServicesMixin
|
||||
return this._moduleIcon;
|
||||
},
|
||||
/**
|
||||
* State if the author of this message is Odoobot
|
||||
* State if the author of this message is OdooBot
|
||||
* This is the default author for transient messages.
|
||||
*
|
||||
* @private
|
||||
|
||||
@@ -254,7 +254,7 @@ var MailManager = AbstractService.extend({
|
||||
return this._moderatedChannelIDs || [];
|
||||
},
|
||||
/**
|
||||
* Get the Odoobot ID, which is the default authorID for transient messages
|
||||
* Get the OdooBot ID, which is the default authorID for transient messages
|
||||
*
|
||||
* @returns {string}
|
||||
*/
|
||||
@@ -831,7 +831,7 @@ var MailManager = AbstractService.extend({
|
||||
(filter === 'mailbox_inbox' || !filter)
|
||||
) {
|
||||
elems.push({
|
||||
title: _t("Odoobot has a request for you"),
|
||||
title: _t("<b>OdooBot</b> has a request"),
|
||||
imageSRC: "/mail/static/src/img/odoobot.png",
|
||||
status: 'bot',
|
||||
body: _t("Enable desktop notifications to chat"),
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
{
|
||||
'name': 'Odoobot',
|
||||
'name': 'OdooBot',
|
||||
'version': '1.0',
|
||||
'category': 'Discuss',
|
||||
'summary': 'Add Odoobot in discussions',
|
||||
'summary': 'Add OdooBot in discussions',
|
||||
'description': "",
|
||||
'website': 'https://www.odoo.com/page/discuss',
|
||||
'depends': ['mail'],
|
||||
|
||||
@@ -75,7 +75,7 @@ class MailBot(models.AbstractModel):
|
||||
_("Sorry I'm sleepy. Or not! Maybe I'm just trying to hide my unawareness of human language...<br/>I can show you features if you write")+ ": '<b>"+_('start the tour')+"</b>'.",
|
||||
])
|
||||
elif self._is_bot_pinged(values):
|
||||
return random.choice([_("Yep, Odoobot is in the place!"), _("Pong.")])
|
||||
return random.choice([_("Yep, OdooBot is in the place!"), _("Pong.")])
|
||||
return False
|
||||
|
||||
def _body_contains_emoji(self, body):
|
||||
|
||||
@@ -14,4 +14,4 @@ class Users(models.Model):
|
||||
('onboarding_ping', 'Onboarding ping'),
|
||||
('idle', 'Idle'),
|
||||
('disabled', 'Disabled'),
|
||||
], string="Odoobot Status", readonly=True, required=True, default="not_initialized") # keep track of the state: correspond to the code of the last message sent
|
||||
], string="OdooBot Status", readonly=True, required=True, default="not_initialized") # keep track of the state: correspond to the code of the last message sent
|
||||
|
||||
@@ -33,7 +33,7 @@ class TestOdoobot(BaseFunctionalTest, MockEmails, TestRecipients):
|
||||
self.assertNextMessage(
|
||||
self.test_record_employe.with_context({'mail_post_autofollow': True}).message_post(**kwargs),
|
||||
sender=self.odoobot,
|
||||
answer=["Yep, Odoobot is in the place!"]
|
||||
answer=["Yep, OdooBot is in the place!"]
|
||||
)
|
||||
# Odoobot should not be a follower but user_employee and user_admin should
|
||||
follower = self.test_record.message_follower_ids.mapped('partner_id')
|
||||
|
||||
Reference in New Issue
Block a user