mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
Merge pull request #9766 from nabinhait/migration_fixes
minor fixes while upgrading an old instance
This commit is contained in:
@@ -1358,7 +1358,7 @@
|
|||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"istable": 0,
|
"istable": 0,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"modified": "2017-06-13 14:29:00.457874",
|
"modified": "2017-07-10 14:29:00.457874",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Manufacturing",
|
"module": "Manufacturing",
|
||||||
"name": "Production Order",
|
"name": "Production Order",
|
||||||
|
|||||||
@@ -353,7 +353,7 @@
|
|||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"modified": "2017-05-15 17:37:20.212361",
|
"modified": "2017-07-10 17:37:20.212361",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Manufacturing",
|
"module": "Manufacturing",
|
||||||
"name": "Production Order Item",
|
"name": "Production Order Item",
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ from frappe.model.mapper import get_mapped_doc
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
# for converting student batch into student group
|
# for converting student batch into student group
|
||||||
for doctype in ["Student Group", "Student Group Student", "Student Group Instructor", "Student Attendance"]:
|
for doctype in ["Student Group", "Student Group Student", "Student Group Instructor", "Student Attendance", "Student"]:
|
||||||
frappe.reload_doc("schools", "doctype", doctype)
|
frappe.reload_doc("schools", "doctype", frappe.scrub(doctype))
|
||||||
|
|
||||||
if frappe.db.table_exists("Student Batch"):
|
if frappe.db.table_exists("Student Batch"):
|
||||||
student_batches = frappe.db.sql('''select name as student_group_name, student_batch_name as batch,
|
student_batches = frappe.db.sql('''select name as student_group_name, student_batch_name as batch,
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ def execute():
|
|||||||
frappe.reload_doc('regional', 'doctype', 'gst_settings')
|
frappe.reload_doc('regional', 'doctype', 'gst_settings')
|
||||||
frappe.reload_doc('regional', 'doctype', 'gst_hsn_code')
|
frappe.reload_doc('regional', 'doctype', 'gst_hsn_code')
|
||||||
frappe.reload_doc('stock', 'doctype', 'item')
|
frappe.reload_doc('stock', 'doctype', 'item')
|
||||||
|
frappe.reload_doc("stock", "doctype", "customs_tariff_number")
|
||||||
|
|
||||||
for report_name in ('GST Sales Register', 'GST Purchase Register',
|
for report_name in ('GST Sales Register', 'GST Purchase Register',
|
||||||
'GST Itemised Sales Register', 'GST Itemised Purchase Register'):
|
'GST Itemised Sales Register', 'GST Itemised Purchase Register'):
|
||||||
|
|||||||
Reference in New Issue
Block a user