@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user