[IMP] Make kanban quick create button a toggler
bzr revid: fme@openerp.com-20120919124859-l5fci8nwxf2jtu18
This commit is contained in:
parent
b0b4b4b252
commit
3896111478
|
@ -551,7 +551,9 @@ instance.web_kanban.KanbanGroup = instance.web.Widget.extend({
|
|||
});
|
||||
|
||||
this.$el.find('.oe_kanban_add').click(function () {
|
||||
if (self.quick) { return; }
|
||||
if (self.quick) {
|
||||
return self.quick.trigger('close');
|
||||
}
|
||||
var ctx = {};
|
||||
ctx['default_' + self.view.group_by] = self.value;
|
||||
self.quick = new (get_class(self.view.quick_create_class))(this, self.dataset, ctx, true)
|
||||
|
|
Loading…
Reference in New Issue