mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_drop_target: Migration to 14.0
This commit is contained in:
committed by
Jasmin Solanki
parent
5493189ea7
commit
3cf3ed9c66
@@ -78,7 +78,6 @@ odoo.define("web_drop_target", function (require) {
|
||||
|
||||
_create_attachment: function (file, reader, e, res_model, res_id, extra_data) {
|
||||
// Helper to upload an attachment and update the sidebar
|
||||
var self = this;
|
||||
return this._rpc({
|
||||
model: "ir.attachment",
|
||||
method: "create",
|
||||
@@ -95,15 +94,6 @@ odoo.define("web_drop_target", function (require) {
|
||||
extra_data || {}
|
||||
),
|
||||
],
|
||||
}).then(function () {
|
||||
// Find the chatter among the children, there should be only
|
||||
// one
|
||||
var res = _.filter(self.getChildren(), "chatter");
|
||||
if (res.length) {
|
||||
res[0].chatter._reloadAttachmentBox();
|
||||
res[0].chatter.trigger_up("reload");
|
||||
res[0].chatter.$(".o_chatter_button_attachment").click();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user