Error when we try to create a refund

Bug #1311509 reported by Romain Deheele - Camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP RMA
Fix Released
Undecided
Unassigned

Bug Description

Hello,

I create a RMA.
I attach an invoice : partner delivery address and claim lines are populated correctly.
I pass the RMA in state progress.
I click on "New Refund" button.
It raises the next error :
  File "/home/rdeheele/oerp/sandbox/parts/addons/account/wizard/account_invoice_refund.py", line 232, in invoice_refund
    data_refund = self.read(cr, uid, ids, ['filter_refund'],context=context)[0]['filter_refund']
  File "/home/rdeheele/oerp/sandbox/parts/openerp-rma/crm_claim_rma/wizard/account_invoice_refund.py", line 36, in compute_refund
    cr, uid, ids, mode=mode, context=context)
  File "/home/rdeheele/oerp/sandbox/parts/addons/account/wizard/account_invoice_refund.py", line 158, in compute_refund
    refund_id = inv_obj.refund(cr, uid, [inv.id], date, period, description, journal_id, context=context)
  File "/home/rdeheele/oerp/sandbox/parts/addons/account/account_invoice.py", line 1268, in refund
    context=context)
  File "/home/rdeheele/oerp/sandbox/parts/openerp-rma/crm_claim_rma/account_invoice.py", line 87, in _prepare_refund
    journal_id=journal_id, context=context)
  File "/home/rdeheele/oerp/sandbox/parts/addons/account/account_invoice.py", line 1232, in _prepare_refund
    invoice_lines = self._refund_cleanup_lines(cr, uid, invoice.invoice_line, context=context)
  File "/home/rdeheele/oerp/sandbox/parts/openerp-rma/crm_claim_rma/account_invoice.py", line 49, in _refund_cleanup_lines
    for __, claim_line_id in context.get('claim_line_ids'):
ValueError: too many values to unpack

Regards,

Romain

Related branches

Changed in openerp-rma:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.