Skip to content
Snippets Groups Projects
Commit 2a697f1c authored by len-odoo's avatar len-odoo
Browse files

[FIX] document: update environment before attachments update

Fine-tuning of commit:
b3a3ad80
ac1e187e

The environment should be updated before the call to _updateAttachments,
as it depends on the env active_id.

opw 1888651

closes odoo/odoo#27277
parent 8eb84957
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@ Sidebar.include({
* @override
*/
updateEnv: function (env) {
this.env = env;
var _super = _.bind(this._super, this, env);
var def = this.hasAttachments ? this._updateAttachments() : $.when();
def.then(_super);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment