[FIX] creation button in list view

bzr revid: xmo@openerp.com-20111207133229-m47jhi2kr01247k4
This commit is contained in:
Xavier Morel 2011-12-07 14:32:29 +01:00
parent 74bd504779
commit bbf46ca288
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView#
* @param {String} [view="page"] the view type to switch to
*/
select_record:function (index, view) {
view = view || 'page';
view = view || index == null ? 'form' : 'page';
this.dataset.index = index;
_.delay(_.bind(function () {
this.do_switch_view(view);