mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-11-02 20:30:20 -06:00
[PATCH] Upstream patch - 06062022
This commit is contained in:
1 parent
3746d3efba
commit
195bd0a9de
24 files changed
+238
-23
No files matched your search
+5
-2
@@ -7,6 +7,7 @@ const useUpdate = require('mail/static/src/component_hooks/use_update/use_update
|
||||
|
||||
const { FormViewDialog } = require('web.view_dialogs');
|
||||
const { ComponentAdapter } = require('web.OwlCompatibility');
|
||||
const session = require('web.session');
|
||||
|
||||
const { Component } = owl;
|
||||
const { useRef } = owl.hooks;
|
||||
@@ -124,11 +125,13 @@ class ComposerSuggestedRecipient extends Component {
|
||||
// recipient that does not have a partner, the partner creation form
|
||||
// should be opened.
|
||||
if (isChecked && this._dialogRef && !this._isDialogOpen) {
|
||||
const widget = this._dialogRef.comp.widget;
|
||||
this._isDialogOpen = true;
|
||||
this._dialogRef.comp.widget.on('closed', this, () => {
|
||||
widget.on('closed', this, () => {
|
||||
this._isDialogOpen = false;
|
||||
});
|
||||
this._dialogRef.comp.widget.open();
|
||||
widget.context = Object.assign({}, widget.context, session.user_context)
|
||||
widget.open();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,6 +147,7 @@ const DiscussWidget = AbstractAction.extend({
|
||||
'o-update-control-panel',
|
||||
this._updateControlPanelEventListener
|
||||
);
|
||||
this._lastPushStateActiveThread = null;
|
||||
},
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
@@ -423,6 +423,7 @@ class MailComposer(models.TransientModel):
|
||||
'body_html': record.body or False,
|
||||
'model_id': model.id or False,
|
||||
'attachment_ids': [(6, 0, [att.id for att in record.attachment_ids])],
|
||||
'use_default_to': True,
|
||||
}
|
||||
template = self.env['mail.template'].create(values)
|
||||
# generate the saved template
|
||||
|
||||
Reference in new issue
Block a user