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

9 lines
262 B
Python

from __future__ import unicode_literals
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()