2019-04-09 09:50:24 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
2019-04-11 11:02:37 +00:00
|
|
|
woocommerce_settings = frappe.get_single("Woocommerce Settings")
|
2019-04-09 09:50:24 +00:00
|
|
|
if woocommerce_settings.enable_sync:
|
|
|
|
woocommerce_settings.creation_user = woocommerce_settings.modified_by
|
|
|
|
woocommerce_settings.save()
|