mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
7 lines
250 B
Python
7 lines
250 B
Python
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
def execute():
|
|
frappe.db.sql("""Update `tabItem` as item set default_bom = NULL where
|
|
not exists(select name from `tabBOM` as bom where item.default_bom = bom.name and bom.docstatus =1 )""") |