From e6496af1ea31b2c699de9e41196a9ae3a07efb7f Mon Sep 17 00:00:00 2001 From: "Mariska Archielli (ram)" Date: Thu, 17 Sep 2020 14:23:41 +0000 Subject: [FIX] mass_mailing, mass_mailing_sms : fix bugs and incoherency Fix traceback when creating a new contact by checking the id list is not empty Filter default reporting by name rather then by campaign (as campaign is an option) Group by Campaign only if the option is checked to enforce coherency. > This is unblocked with a group. Hide the 'replied' status from sms reports as it is not relevant for sms. Remove the preview message for sms as it is not relevant elsewhere then the object of mails. Warn the user if he's trying to send a sms with only white-space characters. > this causes an error because the plaintext-html conversion in mail_thread.py > consider a white-spaces-only text as empty. Mobile placeholder added for a better understanding of the field by the user. Task ID : 2302578 closes odoo/odoo#60426 Signed-off-by: Thibault Delavallee (tde) --- addons/web/static/src/js/fields/basic_fields.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index 181e4b1efd8..0ca1e27de4e 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -160,6 +160,14 @@ var DebouncedField = AbstractField.extend({ * @returns {*} */ _getValue: function () {}, + /** + * Should make an action on lost focus. + * + * @abstract + * @private + * @returns {*} + */ + _onBlur: function () {}, }); var InputField = DebouncedField.extend({ @@ -169,6 +177,7 @@ var InputField = DebouncedField.extend({ events: _.extend({}, DebouncedField.prototype.events, { 'input': '_onInput', 'change': '_onChange', + 'blur' : '_onBlur', }), /** -- cgit v1.2.3