[FIX] *: adapt addons to views refactoring of previous commit

This commit is contained in:
Aaron Bohy
2016-03-18 10:44:52 +01:00
parent 002660a9b0
commit bda451ab31
5 changed files with 21 additions and 13 deletions
+2 -1
View File
@@ -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 = [];
}