[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:
ksa (Open ERP)
2010-12-17 17:44:59 +05:30
parent 8e366d87e1
commit 4665c073c8
+2 -1
View File
@@ -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):