diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-03-16 09:53:31 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2016-03-18 10:44:52 +0100 |
| commit | bda451ab31c19c52eb72c16eae2471d39860a8d3 (patch) | |
| tree | 1b9b50b9407f2d3bee963c4c53e1c152d84beb22 /addons/document/static | |
| parent | 002660a9b05cf8620e1c5287a8538ac5e806d59e (diff) | |
[FIX] *: adapt addons to views refactoring of previous commit
Diffstat (limited to 'addons/document/static')
| -rw-r--r-- | addons/document/static/src/js/document.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/document/static/src/js/document.js b/addons/document/static/src/js/document.js index 9448a93adb9..05885839469 100644 --- a/addons/document/static/src/js/document.js +++ b/addons/document/static/src/js/document.js @@ -9,7 +9,8 @@ var _t = core._t; Sidebar.include({ init : function(){ this._super.apply(this, arguments); - if (this.getParent().view_type == "form"){ + var view = this.getParent(); + if (view.fields_view && view.fields_view.type === "form") { this.sections.splice(1, 0, { 'name' : 'files', 'label' : _t('Attachment(s)'), }); this.items.files = []; } |
