[FIX] document: update environment before attachments update
Fine-tuning of commit:b3a3ad8099ac1e187eeaThe environment should be updated before the call to _updateAttachments, as it depends on the env active_id. opw 1888651 closes odoo/odoo#27277
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user