task id: 2487514 closes odoo/odoo#69376 Related: odoo/enterprise#17749 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
34 lines
972 B
JavaScript
34 lines
972 B
JavaScript
/** @odoo-module **/
|
|
|
|
import MockServer from 'web.MockServer';
|
|
|
|
MockServer.include({
|
|
//--------------------------------------------------------------------------
|
|
// Private
|
|
//--------------------------------------------------------------------------
|
|
|
|
/**
|
|
* @override
|
|
*/
|
|
async _performRpc(route, args) {
|
|
if (args.model === 'mail.channel' && args.method === 'init_odoobot') {
|
|
return this._mockMailChannelInitOdooBot();
|
|
}
|
|
return this._super(...arguments);
|
|
},
|
|
|
|
//--------------------------------------------------------------------------
|
|
// Private Mocked Methods
|
|
//--------------------------------------------------------------------------
|
|
|
|
/**
|
|
* Simulates `init_odoobot` on `mail.channel`.
|
|
*
|
|
* @private
|
|
*/
|
|
_mockMailChannelInitOdooBot() {
|
|
// TODO implement this mock task-2300480
|
|
// and improve test "OdooBot initialized after 2 minutes"
|
|
},
|
|
});
|