[FIX] resolved problem with buttons in views, also removed default Close button in wizards

bzr revid: nicolas.vanhoren@openerp.com-20121022152257-yxcz0j73b4azeqr1
This commit is contained in:
niv-openerp 2012-10-22 17:22:57 +02:00
parent 1da06f3bfe
commit db54c70650
2 changed files with 0 additions and 2 deletions

View File

@ -168,7 +168,6 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
this.$buttons = $(QWeb.render("FormView.buttons", {'widget':self}));
if (this.options.$buttons) {
this.options.$buttons.children().remove();
this.$buttons.appendTo(this.options.$buttons);
} else {
this.$el.find('.oe_form_buttons').replaceWith(this.$buttons);

View File

@ -300,7 +300,6 @@ instance.web.ActionManager = instance.web.Widget.extend({
this.dialog_widget.destroy();
if (this.dialog === null || this.dialog.isDestroyed()) {
this.dialog = new instance.web.Dialog(this, {
buttons: {"Close": function() {$(this).dialog("close")}},
dialogClass: executor.klass,
});
this.dialog.on("closing", null, options.on_close);