Add option to notify Shopify customer about fulfillment

Closes #14244
This commit is contained in:
Cédric Krier
2025-09-18 14:12:16 +02:00
parent 53919112df
commit 4fbf660b85
4 changed files with 10 additions and 0 deletions
+1
View File
@@ -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
+2
View File
@@ -52,6 +52,8 @@ class ShipmentOut(metaclass=PoolMeta):
'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):
@@ -20,6 +20,8 @@ this repository contains the full copyright notices and license terms. -->
<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>
+5
View File
@@ -54,6 +54,11 @@ class Shop(metaclass=PoolMeta):
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