[FIX] support virtual ids

bzr revid: fme@openerp.com-20130212131852-xuq4otkb9ooloc9u
This commit is contained in:
Fabien Meghazi 2013-02-12 14:18:52 +01:00
parent 8d85375835
commit ef7978efde
1 changed files with 2 additions and 1 deletions

View File

@ -229,7 +229,8 @@ instance.web.ActionManager = instance.web.Widget.extend({
// It means that if there's only one item, it will do parseInt() on it,
// otherwise it will keep the comma seperated list as string.
add_context.active_ids = state.active_ids.toString().split(',').map(function(id) {
return parseInt(id, 10);
var rid = parseInt(id, 10);
return rid || id;
});
}
this.null_action();