[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:
parent
1da06f3bfe
commit
db54c70650
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue