[IMP] Check user demo will not have error in checking access rules when seeing picking in barcode itf

bzr revid: jco@openerp.com-20140505142654-sjhz1wdoqxztzbrx
This commit is contained in:
Josse Colpaert 2014-05-05 16:26:54 +02:00
parent f6593c49a5
commit c818a210ab
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ function openerp_picking_widgets(instance){
// if we have a specified picking id, we load that one, and we load the picking of the same type as the active list
if( picking_id ){
var loaded_picking = new instance.web.Model('stock.picking')
.call('read',[[picking_id], [], new instance.web.CompoundContext()])
.call('read',[[parseInt(picking_id)], [], new instance.web.CompoundContext()])
.then(function(picking){
self.picking = picking[0];