diff options
| author | Remi Rahir <rar@odoo.com> | 2019-07-22 08:57:32 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-07-23 08:29:15 +0000 |
| commit | cce91e35f7f65841289d225189abcb4f8e1a5e65 (patch) | |
| tree | 248a4793604aa6387386a33ef890c04f3adcaff6 /addons/sms/static/src/js/fields_phone_widget.js | |
| parent | e20c1b6eff1cef0e751eeebacc0bf17b85aa1283 (diff) | |
[FIX] sms: fix some issues in JS widgets
PURPOSE
Followup of merge 4287481 .
SPECIFICATIONS
Correctly reload after sending SMS;
Correctly re-render the typing widget for SMS.
LINKS
Task 1922187
Diffstat (limited to 'addons/sms/static/src/js/fields_phone_widget.js')
| -rw-r--r-- | addons/sms/static/src/js/fields_phone_widget.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/addons/sms/static/src/js/fields_phone_widget.js b/addons/sms/static/src/js/fields_phone_widget.js index f02d9b8625a..ecbe784d22d 100644 --- a/addons/sms/static/src/js/fields_phone_widget.js +++ b/addons/sms/static/src/js/fields_phone_widget.js @@ -32,7 +32,7 @@ Phone.include({ default_number_field_name: this.name, default_composition_mode: 'comment', }); - + var self = this; return this.do_action({ title: _t('Send SMS Text Message'), type: 'ir.actions.act_window', @@ -40,7 +40,10 @@ Phone.include({ target: 'new', views: [[false, 'form']], context: context, - }); + }, { + on_close: function () { + self.trigger_up('reload'); + }}); }, /** |
