[fix][patch] Shopify (#14159)

This commit is contained in:
Faris Ansari 2018-05-21 14:41:11 +05:30 committed by Rushabh Mehta
parent 19ce904030
commit 6d2dfac44e

View File

@ -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()