[FIX]:stock.picking.test_finished: write() takes at most 6 arguments (8 given)
lp bug: https://launchpad.net/bugs/690583 fixed bzr revid: ksa@tinyerp.co.in-20101217121459-1i3k7u3ueu81sjlf
This commit is contained in:
@@ -798,10 +798,11 @@ class stock_picking(osv.osv):
|
||||
move_ids = self.pool.get('stock.move').search(cr, uid, [('picking_id', 'in', ids)])
|
||||
for move in self.pool.get('stock.move').browse(cr, uid, move_ids):
|
||||
if move.state not in ('done', 'cancel'):
|
||||
|
||||
if move.product_qty != 0.0:
|
||||
return False
|
||||
else:
|
||||
move.write(cr, uid, [move.id], {'state': 'done'})
|
||||
move.write({'state': 'done'})
|
||||
return True
|
||||
|
||||
def test_assigned(self, cr, uid, ids):
|
||||
|
||||
Reference in New Issue
Block a user