summaryrefslogtreecommitdiff
path: root/addons/im_livechat/controllers
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2019-01-03 10:52:12 +0000
committerjem-odoo <jem@openerp.com>2019-04-01 07:03:11 +0000
commit9b867cd12dbc8cca5da1e3d6426b5cadf8a0ec33 (patch)
tree8a4beba7613e8d137de00c94326aad41153d1d65 /addons/im_livechat/controllers
parentc04b9c019eb4c04d62d1d90b810c5407d8a9b5bd (diff)
[IMP] im_livechat: improve random assignation of conversations
Task #1919871 Purpose ======= The method 'get_mail_channel' in the 'im_livechat.channel' model used a simple random.choice in the available users to select the operator. It was improved to select the operator that has the lowest number of active livechats. If multiple operators share the same number (lowest) of active livechats, it selects randomly between those. A livechat is considered 'active' if it has at least one message within the last hour. Spec ======= The assignation method should always give the new conversation to the operator who has the less active conversation. If two operators have the same amout of active conversation, it should chose one of them randomly.
Diffstat (limited to 'addons/im_livechat/controllers')
0 files changed, 0 insertions, 0 deletions