brotherton-erpnext/erpnext/patches/v8_9/set_default_customer_group.py

8 lines
222 B
Python
Raw Normal View History

import frappe
def execute():
selling_settings = frappe.get_single('Selling Settings')
selling_settings.set_default_customer_group_and_territory()
2018-06-28 18:12:42 +00:00
selling_settings.flags.ignore_mandatory = True
selling_settings.save()