Reviewers: ,


Please review this at http://codereview.tryton.org/709004/

Affected files:
  M invoice.py


Index: invoice.py
===================================================================

--- a/invoice.py
+++ b/invoice.py
@@ -2661,9 +2661,9 @@
                         (invoice.rec_name,))
                     self.raise_user_error('refund_supplier')

-        invoice_ids = Invoice.credit(invoices, refund=refund)
+        credit_invoices = Invoice.credit(invoices, refund=refund)

-        data = {'res_id': invoice_ids}
-        if len(invoice_ids) == 1:
+        data = {'res_id': [i.id for i in credit_invoices]}
+        if len(credit_invoices) == 1:
             action['views'].reverse()
         return action, data



--
--
[email protected] mailing list

--- You received this message because you are subscribed to the Google Groups "tryton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to