[minor] added set_value in domainify
diff --git a/erpnext/setup/setup_wizard/domainify.py b/erpnext/setup/setup_wizard/domainify.py
index 8adcf85..a866869 100644
--- a/erpnext/setup/setup_wizard/domainify.py
+++ b/erpnext/setup/setup_wizard/domainify.py
@@ -24,7 +24,7 @@
{'doctype': 'Item', 'fieldname': 'is_stock_item', 'property': 'default', 'value': 0},
],
'set_value': [
- ['Stock Settings', 'show_barcode', 0]
+ ['Stock Settings', None, 'show_barcode', 0]
]
}
}
@@ -47,6 +47,12 @@
for args in data.properties:
frappe.make_property_setter(args)
+ if data.set_value:
+ for args in data.set_value:
+ doc = frappe.get_doc(args[0], args[1] or args[0])
+ doc.set(args[2], args[3])
+ doc.save()
+
frappe.clear_cache()
def reset():