Refund Shopify shipping cost when no shipment was sent

Closes #14218
This commit is contained in:
Cédric Krier
2025-09-05 17:57:12 +02:00
parent 8f23c0d36b
commit 32a8c0d6eb
+1 -1
View File
@@ -244,7 +244,7 @@ class Sale(IdentifierMixin, metaclass=PoolMeta):
if self.shipment_state == 'sent' or self.state == 'done':
# TODO: manage shopping refund
refund = self.get_shopify_refund(shipping={
'full_refund': False,
'full_refund': self.shipment_state == 'none',
})
if refund:
if not refund.save():