[FIX] stock: parameter 'ids' given to write function could be of type int or long... -_-
bzr revid: qdp-launchpad@openerp.com-20140213105913-roabmvg4v3uea7to
This commit is contained in:
parent
06d516beae
commit
bcd6adc15c
|
@ -3410,6 +3410,8 @@ class stock_pack_operation(osv.osv):
|
|||
|
||||
def write(self, cr, uid, ids, vals, context=None):
|
||||
res = super(stock_pack_operation, self).write(cr, uid, ids, vals, context=context)
|
||||
if isinstance(ids, (int, long)):
|
||||
ids = [ids]
|
||||
self.recompute_rem_qty_from_operation(cr, uid, ids, context=context)
|
||||
return res
|
||||
|
||||
|
|
Loading…
Reference in New Issue