v 15.0 Third Party 233
Download for v 15.0 Deploy on Odoo.sh
Lines of code 372
Technical Name multi_livechat
Websitehttps://t.me/sync_studio
Also available in version v 13.0 v 14.0
You bought this module and need support? Click here!
Lines of code 372
Technical Name multi_livechat
Websitehttps://t.me/sync_studio
Also available in version v 13.0 v 14.0
Tested and maintained by IT Projects Labs

Multichannel Live Chat

Base module to implement Live Chat through different channels (Telegram, WhatsApp, Instragram, etc.).

Usage

Add following code to your module. Replace MODULE and NAME for your custom values, e.g.

  • MODULE is sync_telegram
  • NAME is telegram

MODULE/__manifest__.py

"depends": ["multi_livechat"],
"assets": {
    "web.assets_backend": [
        "MODULE/static/src/models/discuss/discuss.js",
        "MODULE/static/src/models/discuss_sidebar_category/discuss_sidebar_category.js",
    ],
},

MODULE/models/__init__.py

from . import res_users_settings
from . import mail_channel

MODULE/models/res_users_settings.py

from odoo import fields, models
class ResUsersSettings(models.Model):
    _inherit = 'res.users.settings'
    is_discuss_sidebar_category_NAME_open = fields.Boolean("Is category NAME open", default=True)

MODULE/models/mail_channel.py

from odoo import fields, models
class MailChannel(models.Model):
    _inherit = "mail.channel"
    channel_type = fields.Selection(
        selection_add=[("multi_livechat_NAME", "Channel Description")],
        ondelete={"multi_livechat_NAME": "cascade"}
    )

MODULE/static/src/models/discuss/discuss.js

/** @odoo-module **/
import { registerFieldPatchModel } from '@mail/model/model_core';
import { one2one } from '@mail/model/model_field';
registerFieldPatchModel('mail.discuss', 'MODULE/static/src/models/discuss/discuss.js', {
    categoryMLChat_NAME: one2one('mail.discuss_sidebar_category', {
        inverse: 'discussAsMLChat_NAME',
        isCausal: true,
    }),
});

MODULE/static/src/models/discuss_sidebar_category/discuss_sidebar_category.js

/** @odoo-module **/
import { registerFieldPatchModel, registerIdentifyingFieldsPatch } from '@mail/model/model_core';
import { one2one } from '@mail/model/model_field';
registerFieldPatchModel('mail.discuss_sidebar_category', 'MODULE', {
    discussAsMLChat_NAME: one2one('mail.discuss', {
        inverse: 'categoryMLChat_NAME',
        readonly: true,
    }),
});
registerIdentifyingFieldsPatch('mail.discuss_sidebar_category', 'MODULE', identifyingFields => {
    identifyingFields[0].push('discussAsMLChat_NAME');
});

Questions?

To get an assistance on this module contact us by email :arrow_right: help@itpp.dev

Further information

Apps store: https://apps.odoo.com/apps/modules/14.0/multi_livechat/

Notifications on updates: via Atom, by Email

Tested on Odoo 14.0

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.