diff options
| author | len-odoo <len@odoo.com> | 2018-09-27 10:10:56 +0000 |
|---|---|---|
| committer | len-odoo <len@odoo.com> | 2018-09-27 10:11:12 +0000 |
| commit | 2a697f1c5b06e741968dcd9b1f698ec5fc55f62e (patch) | |
| tree | 2f0f17323ed238a649f5ef938e276a9b28088c60 /addons/document/static | |
| parent | 8eb8495710f127e5edd5a03c13ec956401300221 (diff) | |
[FIX] document: update environment before attachments update
Fine-tuning of commit:
b3a3ad80991265c50f38fd20588df9a69b6bcf67
ac1e187eea33266095f49a9e1e1ea6b0698be865
The environment should be updated before the call to _updateAttachments,
as it depends on the env active_id.
opw 1888651
closes odoo/odoo#27277
Diffstat (limited to 'addons/document/static')
| -rw-r--r-- | addons/document/static/src/js/document.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/document/static/src/js/document.js b/addons/document/static/src/js/document.js index 5c33a3f3cff..b8437d70417 100644 --- a/addons/document/static/src/js/document.js +++ b/addons/document/static/src/js/document.js @@ -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); |
