fix(unicode): Import unicode_literals in every file

This commit is contained in:
Aditya Hase
2019-01-22 18:22:20 +05:30
parent 815c575a0b
commit f3c22f342c
274 changed files with 316 additions and 29 deletions

View File

@@ -1,10 +1,11 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
import frappe.permissions
def execute():
if "opn_description" in frappe.db.get_table_columns("BOM Operation"):
frappe.db.sql("""update `tabBOM Operation` set description = opn_description
frappe.db.sql("""update `tabBOM Operation` set description = opn_description
where ifnull(description, '') = ''""")