summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorMariska Archielli (ram) <ram@odoo.com>2020-09-17 14:23:41 +0000
committerMariska Archielli (ram) <ram@odoo.com>2020-11-05 15:26:05 +0000
commite6496af1ea31b2c699de9e41196a9ae3a07efb7f (patch)
treed5c44764ed199661cb1372921d652cc6cf532577 /addons/web/static/src/js/fields/basic_fields.js
parent4f97641b40839330bc88d686b03d4b4072261c5c (diff)
[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) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
-rw-r--r--addons/web/static/src/js/fields/basic_fields.js9
1 files changed, 9 insertions, 0 deletions
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',
}),
/**