2015-05-21 09:13:24 +00:00
|
|
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2019-01-22 12:52:20 +00:00
|
|
|
from __future__ import unicode_literals
|
2015-05-21 09:13:24 +00:00
|
|
|
import frappe
|
|
|
|
import frappe.permissions
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
if "opn_description" in frappe.db.get_table_columns("BOM Operation"):
|
2019-01-22 12:52:20 +00:00
|
|
|
frappe.db.sql("""update `tabBOM Operation` set description = opn_description
|
2015-05-21 09:13:24 +00:00
|
|
|
where ifnull(description, '') = ''""")
|