[REM] Removed a[type=edit, target=dialog] feature from kanban view. Speeds up kanban view
bzr revid: fme@openerp.com-20120802101540-fjumv01o7oe1k7xh
This commit is contained in:
parent
84bf640e67
commit
d08aa644f3
|
@ -29,8 +29,6 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
|
||||||
records : {}
|
records : {}
|
||||||
};
|
};
|
||||||
this.groups = [];
|
this.groups = [];
|
||||||
this.form_dialog = new instance.web.form.FormDialog(this, {}, this.options.action_views_ids.form, dataset).start();
|
|
||||||
this.form_dialog.on_form_dialog_saved.add_last(this.do_reload);
|
|
||||||
this.aggregates = {};
|
this.aggregates = {};
|
||||||
this.group_operators = ['avg', 'max', 'min', 'sum', 'count'];
|
this.group_operators = ['avg', 'max', 'min', 'sum', 'count'];
|
||||||
this.qweb = new QWeb2.Engine();
|
this.qweb = new QWeb2.Engine();
|
||||||
|
@ -704,14 +702,7 @@ instance.web_kanban.KanbanRecord = instance.web.OldWidget.extend({
|
||||||
return do_it();
|
return do_it();
|
||||||
},
|
},
|
||||||
do_action_edit: function($action) {
|
do_action_edit: function($action) {
|
||||||
var self = this;
|
this.view.open_record(this.id, true);
|
||||||
if ($action.attr('target') === 'dialog') {
|
|
||||||
this.view.form_dialog.select_id(this.id).then(function() {
|
|
||||||
self.view.form_dialog.open();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
this.view.open_record(this.id, true);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
do_action_object: function ($action) {
|
do_action_object: function ($action) {
|
||||||
var button_attrs = $action.data();
|
var button_attrs = $action.data();
|
||||||
|
|
Loading…
Reference in New Issue