odoo18/addons_extensions/whatsapp/models/res_users_settings.py

12 lines
385 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResUsersSettings(models.Model):
_inherit = 'res.users.settings'
is_discuss_sidebar_category_whatsapp_open = fields.Boolean(
string='WhatsApp Category Open', default=True,
help="If checked, the WhatsApp category is open in the discuss sidebar")