[FIX] mail: dialog create res.partner is not translated

Before this commit:
After the user checked the checkbox in the mail thread, a dialog create res.partner will be shown, the content of this dialog is not translated.
After this commit:
The content of dialog will be translated

closes odoo/odoo#93104

X-original-commit: 759275b913b599bedb2380ec3200671488bfc298
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
Nam Dao
2022-06-08 16:50:50 +02:00
committed by Sébastien Theys
parent 3017392f91
commit 01ad802c0b
@@ -5,6 +5,7 @@ import { registerMessagingComponent } from '@mail/utils/messaging_component';
import { FormViewDialog } from 'web.view_dialogs';
import { standaloneAdapter } from 'web.OwlCompatibility';
import session from 'web.session';
const { Component, useRef } = owl;
@@ -70,6 +71,7 @@ export class ComposerSuggestedRecipient extends Component {
const adapterParent = standaloneAdapter({ Component });
const selectCreateDialog = new FormViewDialog(adapterParent, {
context: {
...session.user_context,
active_id: this.composerSuggestedRecipientView.suggestedRecipientInfo.thread.id,
active_model: 'mail.compose.message',
default_email: this.composerSuggestedRecipientView.suggestedRecipientInfo.email,