[FIX] web_editor: drop an image in the 'mail.compose.message' modal
Issue: Can not drop an image into the modal's editor because the server request a positional res_id arguments. closes odoo/odoo#33232 Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
This commit is contained in:
@@ -150,7 +150,7 @@ var DropzonePlugin = Plugins.dropzone.extend({
|
||||
route: '/web_editor/add_image_base64',
|
||||
params: {
|
||||
res_model: options.res_model,
|
||||
res_id: options.res_id,
|
||||
res_id: options.res_id || 0,
|
||||
image_base64: imageBase64.split(';base64,').pop(),
|
||||
filename: fileName,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user