[IMP] mail_bot: Remove OdooBot ping answers

Many users have complained about the automated OdooBot answers like
"Pong" when the bot is pinged, that fill the chatter when the user has
the mail_bot module installed, and add no real value.
This commit is contained in:
dmonzonis
2020-04-10 11:15:19 +00:00
parent 328f6dbc98
commit 3ba7186752
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -75,8 +75,6 @@ class MailBot(models.AbstractModel):
_("I'm afraid I don't understand. Sorry!"),
_("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 False
def _body_contains_emoji(self, body):
+1 -1
View File
@@ -44,7 +44,7 @@ class TestOdoobot(TestMailCommon, 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=False
)
# Odoobot should not be a follower but user_employee and user_admin should
follower = self.test_record.message_follower_ids.mapped('partner_id')