fix(woocommerce integration): possible travis fix
possible fix for travis patch error "Error: No module named woocommerce_settings.woocommerce_settings)"
(cherry picked from commit a0b7ff60b8c3303a405c98eac11e71cd556ba166)
diff --git a/erpnext/patches/v11_1/woocommerce_set_creation_user.py b/erpnext/patches/v11_1/woocommerce_set_creation_user.py
index 1c26235..e398a03 100644
--- a/erpnext/patches/v11_1/woocommerce_set_creation_user.py
+++ b/erpnext/patches/v11_1/woocommerce_set_creation_user.py
@@ -2,7 +2,7 @@
import frappe
def execute():
- woocommerce_settings = frappe.get_doc("Woocommerce Settings")
+ woocommerce_settings = frappe.get_single("Woocommerce Settings")
if woocommerce_settings.enable_sync:
woocommerce_settings.creation_user = woocommerce_settings.modified_by
woocommerce_settings.save()
\ No newline at end of file