diff options
Diffstat (limited to 'addons/mail/static/src/js/mail.js')
| -rw-r--r-- | addons/mail/static/src/js/mail.js | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index e29feecf414..21ac9d5e171 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -1266,18 +1266,17 @@ var ComposeMessage = Attachment.extend ({ var partner_id = partner_info.partner_id; var parsed_email = mail_utils.parse_email(partner_name); - var pop = new form_common.FormOpenPopup(this); - pop.show_element( - 'res.partner', - partner_id, - { 'force_email': true, + var pop = new form_common.FormViewDialog(this, { + res_model: 'res.partner', + res_id: partner_id, + context: { + 'force_email': true, 'ref': "compound_context", 'default_name': parsed_email[0], 'default_email': parsed_email[1], - }, { - title: _t("Please complete partner's informations"), - } - ); + }, + title: _t("Please complete partner's informations"), + }).open(); pop.on('closed', self, function () { deferred.resolve(); }); |
