[FIX] fix refund generation : a third element need to be considered in each line record in context

This commit is contained in:
Romain Deheele
2014-04-23 09:53:42 +02:00
parent 9a51377206
commit 32232a679f

View File

@@ -46,7 +46,7 @@ class account_invoice(orm.Model):
return super(account_invoice, self)._refund_cleanup_lines(
cr, uid, lines, context=None)
for __, claim_line_id in context.get('claim_line_ids'):
for __, claim_line_id, __ in context.get('claim_line_ids'):
line = claim_line_obj.browse(cr, uid, claim_line_id,
context=context)
if not line.refund_line_id: