diff options
| author | Xavier Dubuc <xdu@odoo.com> | 2020-07-08 13:52:53 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2020-07-15 16:18:53 +0000 |
| commit | c767df5e978f218cd0c1c7dc9219d3655e320fab (patch) | |
| tree | e2139569a76bbc8b10ccf2ec47a887c2f50c6791 /addons/mail/static/src/components/composer | |
| parent | 04a757d59615c622ba808e4d5b0efc0ecf3190d0 (diff) | |
[FIX] mail: set full composer subject and recipients
task-2291887
task-2291893
task-2291898
closes odoo/odoo#54531
X-original-commit: 26170ad9ab09d75de2e0af98fb7daedc2ed57e50
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/composer')
| -rw-r--r-- | addons/mail/static/src/components/composer/composer.js | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/addons/mail/static/src/components/composer/composer.js b/addons/mail/static/src/components/composer/composer.js index cd47385e019..b81a4664708 100644 --- a/addons/mail/static/src/components/composer/composer.js +++ b/addons/mail/static/src/components/composer/composer.js @@ -15,7 +15,6 @@ const { isEventHandled, markEventHandled, } = require('mail/static/src/utils/utils.js'); -const mailUtils = require('mail.utils'); const { Component } = owl; const { useRef } = owl.hooks; @@ -227,33 +226,8 @@ class Composer extends Component { * * @private */ - async _onClickFullComposer() { - const attachmentIds = this.composer.attachments.map(attachment => attachment.res_id); - - const context = { - // default_parent_id: this.id, - default_body: mailUtils.escapeAndCompactTextContent(this.composer.textInputContent), - default_attachment_ids: attachmentIds, - // default_partner_ids: partnerIds, - default_is_log: this.composer.isLog, - mail_post_autofollow: true, - }; - - // if (this.context.default_model && this.context.default_res_id) { - // context.default_model = this.context.default_model; - // context.default_res_id = this.context.default_res_id; - // } - - const action = { - type: 'ir.actions.act_window', - res_model: 'mail.compose.message', - view_mode: 'form', - views: [[false, 'form']], - target: 'new', - context: context, - }; - await this.env.bus.trigger('do-action', { action }); - this.trigger('o-full-composer-opened'); + _onClickFullComposer() { + this.composer.openFullComposer(); } /** |
