brotherton-erpnext/erpnext/patches/v8_9/set_default_customer_group.py
2018-06-28 23:42:55 +05:30

8 lines
222 B
Python

import frappe
def execute():
selling_settings = frappe.get_single('Selling Settings')
selling_settings.set_default_customer_group_and_territory()
selling_settings.flags.ignore_mandatory = True
selling_settings.save()