Code cleanup, remove unused field 'active', avoid calculating fields in form view.

Support relative time filters and context_today. Updated version and headers
This commit is contained in:
Iván Todorovich
2016-08-12 01:45:30 -03:00
parent 7b5930f2da
commit 6fad2c3f1f
6 changed files with 121 additions and 194 deletions

View File

@@ -35,13 +35,13 @@ _.mixin({
var self = this;
this.$('#add_dashboard_tile').on('click', this, function (){
self.save_tile();
})
});
},
render_data: function(dashboard_choices){
var selection = instance.web.qweb.render(
"SearchView.addtodashboard.selection", {
selections: dashboard_choices});
this.$("form input").before(selection)
this.$("form input").before(selection);
},
save_tile: function () {
var self = this;
@@ -97,4 +97,4 @@ _.mixin({
}
});
}
};