Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odgovori
22278 Prikazi

This odoo bot thing is causing a lot of distraction and annoyance. I really don't see the added value. 

Is there anyone who knows how we can disable/remove this odoo bot? 

Thx!

Avatar
Opusti
Avtor Best Answer

Just tried that - but the odoobot is deeply integrated and indeed - the installation was broken after uninstalling the bot..

Seems like we have to live with it, topic can be closed. 

Avatar
Opusti
Best Answer

You can do it through the interface in user preferences:

1. Click on your name in the top right.

2. Select preferences


3. Set the Odoo Bot Status to Disabled



But if you want to do it programmatically, there's a field on `res.users` called `odoobot_state` that you could force to `disabled`.


addons/mail_bot/models/res_users.py
class Users(models.Model):
    _inherit = 'res.users'
    odoobot_state = fields.Selection([
('not_initialized', 'Not initialized'),
('onboarding_emoji', 'Onboarding emoji'),
('onboarding_attachement', 'Onboarding attachement'),
('onboarding_command', 'Onboarding command'),
('onboarding_ping', 'Onboarding ping'),
('idle', 'Idle'),
('disabled', 'Disabled'),
], string="OdooBot Status", readonly=True, required=True, default="not_initialized")
Avatar
Opusti
Best Answer

You can simply disable bot message by inherit one method "_get_answer" of mail.bot object.
just need to return False instead of any message.

def_get_answer(self, record, body, values, command=False):
return False
Avatar
Opusti
Best Answer

 There is the module called 'OdooBot' (mail_bot). You can find it among the apps if the filter 'Apps' is turned off.

Try to uninstall it (since it is not in dependancies to other apps) - would not it help?

Avatar
Opusti

Most likely a bad idea. It is related to the module 'mail' and this is in return related to other modules. You'll probably loose data such as activities, bulk mails and so on.

agree, but it seems that activities, mass mailing would anyway work. Besides, I guess, it is the only way to achieve the required in the question results without much customization.

Best Answer

to set the preference for everyone, you can run the following update for all users: 

update res_users 

set odoobot_state = 'disabled ; 

Avatar
Opusti

or you can export all users, change this field to disabled and import them back.