Reviewers: ,


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

Affected files:
  M purchase.py


Index: purchase.py
===================================================================

--- a/purchase.py
+++ b/purchase.py
@@ -28,7 +28,7 @@
         pool = Pool()
         Sale = pool.get('sale.sale')

-        sales = [r.origin for r in requests if isinstance(r, Sale)]
+        sales = [r.origin for r in requests if isinstance(r.origin, Sale)]

         super(PurchaseRequest, cls).delete(requests)




--
--
[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