1fbafa4e69ee2cc682086a5a9d03435be88920bd
Purpose The assignation method should always give the new conversation to the operator who has the less active conversation. If two operators have the same amount of active conversation, it should chose one of them randomly. We also want the visitor to get the same operator (if available) from its last visit. Specifications The method 'get_mail_channel' on 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 open livechat sessions. If multiple operators share the same number (lowest) of open livechat sessions, it selects randomly between those. For the visitor to get the same operator as during its last visit, we save that information in a cookie (1 week lifetime), and give this optional parameter to the server when asking for the livechat session. To make the code clearer, some methods were reorganize and convert from `api.model` to `api.multi` (ensure_one) to be more API-compliant. Task-1919871 closes odoo/odoo#29888 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%