[patch][fix] Sales BOM should be renamed before rename_table_fields patch

This commit is contained in:
Nabin Hait 2015-07-16 12:19:57 +05:30
parent cf26964deb
commit 5464ca8a73
2 changed files with 2 additions and 3 deletions

View File

@ -100,6 +100,7 @@ erpnext.patches.v5_0.capacity_planning
execute:frappe.reload_doc('crm', 'doctype', 'lead') execute:frappe.reload_doc('crm', 'doctype', 'lead')
execute:frappe.reload_doc('crm', 'doctype', 'opportunity') execute:frappe.reload_doc('crm', 'doctype', 'opportunity')
erpnext.patches.v5_0.rename_taxes_and_charges_master erpnext.patches.v5_0.rename_taxes_and_charges_master
erpnext.patches.v5_1.sales_bom_rename
erpnext.patches.v5_0.rename_table_fieldnames erpnext.patches.v5_0.rename_table_fieldnames
execute:frappe.db.sql("update `tabJournal Entry` set voucher_type='Journal Entry' where ifnull(voucher_type, '')=''") execute:frappe.db.sql("update `tabJournal Entry` set voucher_type='Journal Entry' where ifnull(voucher_type, '')=''")
erpnext.patches.v5_0.is_group erpnext.patches.v5_0.is_group
@ -173,5 +174,4 @@ erpnext.patches.v5_0.update_item_desc_in_invoice
erpnext.patches.v5_1.fix_against_account erpnext.patches.v5_1.fix_against_account
erpnext.patches.v5_1.fix_credit_days_based_on erpnext.patches.v5_1.fix_credit_days_based_on
erpnext.patches.v5_1.track_operations erpnext.patches.v5_1.track_operations
erpnext.patches.v5_1.sales_bom_rename
execute:frappe.rename_doc("DocType", "Salary Manager", "Process Payroll", force=True) execute:frappe.rename_doc("DocType", "Salary Manager", "Process Payroll", force=True)

View File

@ -111,7 +111,6 @@ rename_map = {
["installed_item_details", "items"] ["installed_item_details", "items"]
], ],
"Item": [ "Item": [
["item_variants", "variants"],
["item_reorder", "reorder_levels"], ["item_reorder", "reorder_levels"],
["uom_conversion_details", "uoms"], ["uom_conversion_details", "uoms"],
["item_supplier_details", "supplier_items"], ["item_supplier_details", "supplier_items"],
@ -168,7 +167,7 @@ rename_map = {
["earning_details", "earnings"], ["earning_details", "earnings"],
["deduction_details", "deductions"] ["deduction_details", "deductions"]
], ],
"Sales BOM": [ "Product Bundle": [
["sales_bom_items", "items"] ["sales_bom_items", "items"]
], ],
"SMS Settings": [ "SMS Settings": [