diff --git a/addons/base/static/src/js/chrome.js b/addons/base/static/src/js/chrome.js index 25949d375b3..41f60be72c9 100644 --- a/addons/base/static/src/js/chrome.js +++ b/addons/base/static/src/js/chrome.js @@ -368,11 +368,8 @@ openerp.base.Dialog = openerp.base.OldWidget.extend({ return parseInt(val, 10); } }, - start: function (auto_open) { + start: function () { this.$dialog = $('
').dialog(this.dialog_options); - if (auto_open !== false) { - this.open(); - } this._super(); return this; }, @@ -964,7 +961,7 @@ openerp.base.WebClient = openerp.base.Widget.extend({ this.session = new openerp.base.Session(this,"oe_errors"); this.loading = new openerp.base.Loading(this,"oe_loading"); this.crashmanager = new openerp.base.CrashManager(this); - this.crashmanager.start(false); + this.crashmanager.start(); // Do you autorize this ? will be replaced by notify() in controller openerp.base.Widget.prototype.notification = new openerp.base.Notification(this, "oe_notification"); diff --git a/addons/base/static/src/js/views.js b/addons/base/static/src/js/views.js index dd81d87cd40..3b7374b7822 100644 --- a/addons/base/static/src/js/views.js +++ b/addons/base/static/src/js/views.js @@ -79,7 +79,7 @@ openerp.base.ActionManager = openerp.base.Widget.extend({ if (this.dialog == null) { this.dialog = new openerp.base.ActionDialog(this, { title: action.name, width: '80%' }); this.dialog.close_callback = on_closed; - this.dialog.start(false); + this.dialog.start(); this.dialog_viewmanager = new openerp.base.ViewManagerAction(this, action); this.dialog_viewmanager.appendTo(this.dialog.$element); this.dialog.open(); @@ -572,7 +572,7 @@ openerp.base.View = openerp.base.Widget.extend({ }, on_sidebar_export: function() { var export_view = new openerp.base.DataExport(this, this.dataset); - export_view.start(false); + export_view.start(); }, on_sidebar_translate: function() { }, diff --git a/addons/base_calendar/static/src/js/calendar.js b/addons/base_calendar/static/src/js/calendar.js index f488c083b84..8b92300a5f7 100644 --- a/addons/base_calendar/static/src/js/calendar.js +++ b/addons/base_calendar/static/src/js/calendar.js @@ -411,7 +411,7 @@ openerp.base_calendar.CalendarFormDialog = openerp.base.Dialog.extend({ this.view = view; }, start: function() { - this._super(false); + this._super(); this.form = new openerp.base.FormView(this, this.element_id, this.dataset, this.view_id, { sidebar: false, pager: false