Fix AttributeError usage when creating external refund matching pending sum

This commit is contained in:
Raphael Michel
2021-06-14 20:45:15 +02:00
parent ba895270fa
commit eb77f67d28
+1 -1
View File
@@ -1698,7 +1698,7 @@ class OrderPayment(models.Model):
})
if self.order.pending_sum + r.amount == Decimal('0.00'):
self.refund.done()
r.done()
return r