From 32232a679f9ec45de3d7caad34669d3fb5f3ba14 Mon Sep 17 00:00:00 2001 From: Romain Deheele Date: Wed, 23 Apr 2014 09:53:42 +0200 Subject: [PATCH] [FIX] fix refund generation : a third element need to be considered in each line record in context --- crm_claim_rma/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm_claim_rma/account_invoice.py b/crm_claim_rma/account_invoice.py index b6ca9285..cb5aef54 100644 --- a/crm_claim_rma/account_invoice.py +++ b/crm_claim_rma/account_invoice.py @@ -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: