summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/models/threads
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-07-05 12:08:08 +0200
committerAlexandre Kühn <aku@odoo.com>2018-07-19 13:58:34 +0200
commit68c5ebbbeafd474e0ee3f77669072163e5dd65a5 (patch)
tree81e658d372e3310a7707aa9bb410ad4d5b09768f /addons/mail/static/src/js/models/threads
parent915da49d173e9ab8d0c6d94cbeec124c83d23fc7 (diff)
[IMP] im_livechat, mail: website livechat model
Make use of a website livechat model, so that im_livechat can make use of this model. This provides an almost similar model for threads in the backend and in the frontend. As a consequence, im_livechat and website livechat windows have been adapted to handle a website livechat model.
Diffstat (limited to 'addons/mail/static/src/js/models/threads')
-rw-r--r--addons/mail/static/src/js/models/threads/abstract_thread.js2
-rw-r--r--addons/mail/static/src/js/models/threads/create_mode_document_thread.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/models/threads/abstract_thread.js b/addons/mail/static/src/js/models/threads/abstract_thread.js
index 788a04307a7..08cf5cec2ab 100644
--- a/addons/mail/static/src/js/models/threads/abstract_thread.js
+++ b/addons/mail/static/src/js/models/threads/abstract_thread.js
@@ -13,7 +13,7 @@ var AbstractThread = Class.extend({
/**
* @param {Object} params
* @param {Object} params.data
- * @param {Object} params.data.id the ID of this thread
+ * @param {integer|string} params.data.id the ID of this thread
*/
init: function (params) {
this._id = params.data.id;
diff --git a/addons/mail/static/src/js/models/threads/create_mode_document_thread.js b/addons/mail/static/src/js/models/threads/create_mode_document_thread.js
index ab396984b54..da632de0470 100644
--- a/addons/mail/static/src/js/models/threads/create_mode_document_thread.js
+++ b/addons/mail/static/src/js/models/threads/create_mode_document_thread.js
@@ -12,7 +12,7 @@ var _t = core._t;
/**
* Special document thread that is linked to a new document that is in create
* mode. This thread only display a single (fake) message which displays the
- * user avatar and the message 'creating a new record...'.
+ * user avatar and the message 'Creating a new record...'.
*
* Note: it uses AbstractThread and AbstractMessage, because this is a fake
* thread which contains a fake message. We do not want to register both of them