brotherton-erpnext/erpnext/patches/v13_0/fix_non_unique_represents_company.py

8 lines
139 B
Python

import frappe
def execute():
frappe.db.sql("""
update tabCustomer
set represents_company = NULL
where represents_company = ''
""")