[minor] [patch] update reqd fields in reports

This commit is contained in:
Anand Doshi 2013-11-16 12:33:34 +05:30
parent aa268f0fed
commit 2b71380f1f
5 changed files with 21 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import webnotes
def execute():

View File

@ -1,6 +1,7 @@
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import webnotes
def execute():

View File

@ -1,5 +1,6 @@
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
def execute():
import webnotes

View File

@ -0,0 +1,17 @@
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
def execute():
import webnotes
# report_name
webnotes.conn.sql("""update `tabReport` set report_name=name where ifnull(report_name, '')=''""")
# report_type
webnotes.conn.sql("""update `tabReport` set report_type='Report Builder'
where ifnull(report_type, '')='' and ifnull(json, '')!=''""")
# is_standard
webnotes.conn.sql("""update `tabReport` set is_standard='No' where ifnull(is_standard, '')=''""")

View File

@ -246,4 +246,5 @@ patch_list = [
"execute:webnotes.reload_doc('core', 'doctype', 'comment') #2013-11-15",
"patches.1311.p02_index_singles",
"patches.1311.p01_make_gl_entries_for_si",
"patches.1311.p03_update_reqd_report_fields",
]