summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/composer/composer.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/components/composer/composer.js')
-rw-r--r--addons/mail/static/src/components/composer/composer.js30
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();
}
/**