details:   https://code.tryton.org/tryton/commit/09e406583db0
branch:    default
user:      Cédric Krier <[email protected]>
date:      Thu Sep 18 14:12:16 2025 +0200
description:
        Add option to notify Shopify customer about fulfillment

        Closes #14244
diffstat:

 modules/web_shop_shopify/CHANGELOG          |  1 +
 modules/web_shop_shopify/stock.py           |  2 ++
 modules/web_shop_shopify/view/shop_form.xml |  2 ++
 modules/web_shop_shopify/web.py             |  5 +++++
 4 files changed, 10 insertions(+), 0 deletions(-)

diffs (47 lines):

diff -r 17f3fe970eac -r 09e406583db0 modules/web_shop_shopify/CHANGELOG
--- a/modules/web_shop_shopify/CHANGELOG        Wed Sep 24 09:29:03 2025 +0200
+++ b/modules/web_shop_shopify/CHANGELOG        Thu Sep 18 14:12:16 2025 +0200
@@ -1,3 +1,4 @@
+* Add option to notify customer about fulfillment
 * Support taxes from shipping product
 * Add routes to open Shopify objects
 * Add support for credit refunds
diff -r 17f3fe970eac -r 09e406583db0 modules/web_shop_shopify/stock.py
--- a/modules/web_shop_shopify/stock.py Wed Sep 24 09:29:03 2025 +0200
+++ b/modules/web_shop_shopify/stock.py Thu Sep 18 14:12:16 2025 +0200
@@ -52,6 +52,8 @@
                 'fulfillment_order_line_items': line_items,
                 }
             for order_id, line_items in line_items.items()]
+        fulfillment.notify_customer = bool(
+            sale.web_shop.shopify_fulfillment_notify_customer)
         return fulfillment
 
     def get_shopify_identifier(self, sale):
diff -r 17f3fe970eac -r 09e406583db0 modules/web_shop_shopify/view/shop_form.xml
--- a/modules/web_shop_shopify/view/shop_form.xml       Wed Sep 24 09:29:03 
2025 +0200
+++ b/modules/web_shop_shopify/view/shop_form.xml       Thu Sep 18 14:12:16 
2025 +0200
@@ -20,6 +20,8 @@
             <field name="shopify_webhook_shared_secret"/>
             <label name="shopify_webhook_endpoint_order"/>
             <field name="shopify_webhook_endpoint_order"/>
+            <label name="shopify_fulfillment_notify_customer"/>
+            <field name="shopify_fulfillment_notify_customer"/>
 
             <field name="shopify_payment_journals" colspan="6"/>
         </page>
diff -r 17f3fe970eac -r 09e406583db0 modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py   Wed Sep 24 09:29:03 2025 +0200
+++ b/modules/web_shop_shopify/web.py   Thu Sep 18 14:12:16 2025 +0200
@@ -54,6 +54,11 @@
     shopify_payment_journals = fields.One2Many(
         'web.shop.shopify_payment_journal', 'shop', "Payment Journals",
         states=_states)
+    shopify_fulfillment_notify_customer = fields.Boolean(
+        "Notify Customer about Fulfillment",
+        states={
+            'invisible': Eval('type') != 'shopify',
+            })
 
     del _states
 

Reply via email to