Patch for Production Order Track Operation
This commit is contained in:
8
erpnext/patches/v5_1/track_operations.py
Normal file
8
erpnext/patches/v5_1/track_operations.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
frappe.reload_doctype("Production Order")
|
||||
frappe.db.sql("""Update `tabProduction Order` as po set track_operations=1 where
|
||||
exists(select name from `tabProduction Order Operation` as po_operation where po_operation.parent = po.name )""")
|
||||
Reference in New Issue
Block a user