[FIX] web_dialog_size: do not expand by default and correctly honor default_maximize parameter

This commit is contained in:
Stéphane Bidoul
2016-05-27 21:53:29 +02:00
committed by Mantux11
parent ef9887775a
commit 1ef77a577c
2 changed files with 1 additions and 7 deletions

View File

@@ -8,11 +8,6 @@ openerp.web_dialog_size= function (instance) {
.on('click', self.proxy('_extending'));
self.$dialog_box.find('.dialog_button_restore')
.on('click', self.proxy('_restore'));
if(this.dialog_options.size == 'large')
{
self._extending();
return result;
}
return jQuery.when(result).then(function()
{
var deferred = null;