details:   https://code.tryton.org/tryton/commit/313b466eb1c5
branch:    default
user:      Cédric Krier <[email protected]>
date:      Wed Jul 29 19:30:48 2026 +0200
description:
        Do not set a shipment cost method for Shopify order without shipping 
line

        Without a shipping line, there is no carrier selected and thus no 
shipment cost
        method to set.

        Closes #14976
diffstat:

 modules/web_shop_shopify/sale.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r d3bdcee31589 -r 313b466eb1c5 modules/web_shop_shopify/sale.py
--- a/modules/web_shop_shopify/sale.py  Tue Jul 28 19:23:07 2026 +0200
+++ b/modules/web_shop_shopify/sale.py  Wed Jul 29 19:30:48 2026 +0200
@@ -858,8 +858,8 @@
             else:
                 if available_carriers:
                     carrier = available_carriers[0]
-                else:
-                    shipment_cost_method = None
+        if not carrier:
+            shipment_cost_method = None
         setattr_changed(self, 'carrier', carrier)
         setattr_changed(self, 'shipment_cost_method', shipment_cost_method)
 

Reply via email to