From 6d2dfac44e0f116193d9aa02acb1b0b5edf3fa63 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 21 May 2018 14:41:11 +0530 Subject: [PATCH] [fix][patch] Shopify (#14159) --- erpnext/patches/v11_0/refactor_erpnext_shopify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v11_0/refactor_erpnext_shopify.py b/erpnext/patches/v11_0/refactor_erpnext_shopify.py index c8d4de8753..d344ae3f4b 100644 --- a/erpnext/patches/v11_0/refactor_erpnext_shopify.py +++ b/erpnext/patches/v11_0/refactor_erpnext_shopify.py @@ -22,7 +22,7 @@ def execute(): def setup_app_type(): shopify_settings = frappe.get_doc("Shopify Settings") shopify_settings.app_type = 'Private' - shopify_settings.update_price_in_erpnext_price_list = 0 if shopify_settings.push_prices_to_shopify else 1 + shopify_settings.update_price_in_erpnext_price_list = 0 if getattr(shopify_settings, 'push_prices_to_shopify', None) else 1 shopify_settings.flags.ignore_mandatory = True shopify_settings.ignore_permissions = True shopify_settings.save()