blob: e2485131b5dd7afdd0b5c273c0e467afc4d13461 [file] [log] [blame]
Anand Doshi7fbdba02014-03-25 13:50:52 +05301execute:import unidecode # new requirement
2
Nabin Hait827480f2014-05-12 17:45:37 +05303erpnext.patches.v4_0.validate_v3_patch
Anand Doshifab09042014-05-27 08:39:35 +05304erpnext.patches.v4_0.fix_employee_user_id
Anand Doshi49856912014-05-28 18:49:13 +05305erpnext.patches.v4_0.remove_employee_role_if_no_employee
Nabin Hait827480f2014-05-12 17:45:37 +05306erpnext.patches.v4_0.update_user_properties
Anand Doshi49856912014-05-28 18:49:13 +05307erpnext.patches.v4_0.apply_user_permissions
Nabin Hait827480f2014-05-12 17:45:37 +05308erpnext.patches.v4_0.move_warehouse_user_to_restrictions
Nabin Hait94195752014-05-15 17:17:58 +05309erpnext.patches.v4_0.global_defaults_to_system_settings
Nabin Hait827480f2014-05-12 17:45:37 +053010erpnext.patches.v4_0.update_incharge_name_to_sales_person_in_maintenance_schedule
Saurabhf5ab5f32016-07-04 11:38:45 +053011execute:frappe.reload_doc('stock', 'doctype', 'warehouse')
Rushabh Mehta793ba6b2014-02-14 15:47:51 +053012execute:frappe.reload_doc('accounts', 'doctype', 'sales_invoice') # 2014-01-29
13execute:frappe.reload_doc('selling', 'doctype', 'sales_order') # 2014-01-29
14execute:frappe.reload_doc('selling', 'doctype', 'quotation') # 2014-01-29
15execute:frappe.reload_doc('stock', 'doctype', 'delivery_note') # 2014-01-29
Nabin Hait827480f2014-05-12 17:45:37 +053016erpnext.patches.v4_0.reload_sales_print_format
Rushabh Mehta793ba6b2014-02-14 15:47:51 +053017execute:frappe.reload_doc('accounts', 'doctype', 'purchase_invoice') # 2014-01-29
18execute:frappe.reload_doc('buying', 'doctype', 'purchase_order') # 2014-01-29
19execute:frappe.reload_doc('buying', 'doctype', 'supplier_quotation') # 2014-01-29
20execute:frappe.reload_doc('stock', 'doctype', 'purchase_receipt') # 2014-01-29
Rushabh Mehta793ba6b2014-02-14 15:47:51 +053021execute:frappe.reload_doc('accounts', 'doctype', 'pos_setting') # 2014-01-29
22execute:frappe.reload_doc('selling', 'doctype', 'customer') # 2014-01-29
23execute:frappe.reload_doc('buying', 'doctype', 'supplier') # 2014-01-29
Nabin Haitfb0b24a2016-01-20 14:46:26 +053024execute:frappe.reload_doctype('Item')
Nabin Hait827480f2014-05-12 17:45:37 +053025erpnext.patches.v4_0.map_charge_to_taxes_and_charges
Rushabh Mehta793ba6b2014-02-14 15:47:51 +053026execute:frappe.reload_doc('support', 'doctype', 'newsletter') # 2014-01-31
27execute:frappe.reload_doc('hr', 'doctype', 'employee') # 2014-02-03
Anand Doshie9baaa62014-02-26 12:35:33 +053028execute:frappe.db.sql("update tabPage set module='Core' where name='Setup'")
Rushabh Mehta1e8025b2015-07-24 15:16:25 +053029
30# inserted this patch here since Item types are being changed
31erpnext.patches.v5_2.change_item_selects_to_checks
Nabin Hait827480f2014-05-12 17:45:37 +053032erpnext.patches.v4_0.fields_to_be_renamed
33erpnext.patches.v4_0.rename_sitemap_to_route
34erpnext.patches.v4_0.fix_contact_address
35erpnext.patches.v4_0.customer_discount_to_pricing_rule
Anand Doshif5794f12014-03-03 15:05:28 +053036execute:frappe.db.sql("""delete from `tabWebsite Item Group` where ifnull(item_group, '')=''""")
Nabin Hait827480f2014-05-12 17:45:37 +053037erpnext.patches.v4_0.remove_module_home_pages
38erpnext.patches.v4_0.split_email_settings
Nabin Hait827480f2014-05-12 17:45:37 +053039erpnext.patches.v4_0.import_country_codes
40erpnext.patches.v4_0.countrywise_coa
Nabin Hait155c96b2014-03-21 12:15:13 +053041execute:frappe.delete_doc("DocType", "MIS Control")
42execute:frappe.delete_doc("Page", "Financial Statements")
Nabin Hait2594e412014-04-28 16:23:45 +053043execute:frappe.delete_doc("DocType", "Stock Ledger")
Nabin Hait02d37bb2014-05-06 12:18:50 +053044execute:frappe.delete_doc("DocType", "Grade")
Anand Doshi0c851692014-05-08 17:40:12 +053045execute:frappe.db.sql("delete from `tabWebsite Item Group` where ifnull(item_group, '')=''")
Anand Doshi4c83e402014-05-13 17:37:56 +053046execute:frappe.delete_doc("Print Format", "SalesInvoice")
Nabin Haitea7e3d62014-05-14 18:51:45 +053047execute:import frappe.defaults;frappe.defaults.clear_default("price_list_currency")
Nabin Hait0e6554e2014-05-20 15:27:02 +053048erpnext.patches.v4_0.update_account_root_type
Nabin Hait19d1e492014-06-04 15:18:24 +053049execute:frappe.delete_doc("Report", "Purchase In Transit")
Rushabh Mehtaeaa2e552014-06-05 14:44:16 +053050erpnext.patches.v4_0.new_address_template
Rushabh Mehtaba83e9c2014-06-05 17:56:12 +053051execute:frappe.delete_doc("DocType", "SMS Control")
Anand Doshib6c5b212015-08-18 16:27:20 +053052execute:frappe.delete_doc_if_exists("DocType", "Bulk SMS") #2015-08-18
Anand Doshi4a069a12014-06-06 16:28:03 +053053erpnext.patches.v4_0.fix_case_of_hr_module_def
Anand Doshifc601652014-06-06 17:07:50 +053054erpnext.patches.v4_0.fix_address_template
Anand Doshi171c00c2014-06-06 15:09:26 +053055
56# WATCHOUT: This patch reload's documents
57erpnext.patches.v4_0.reset_permissions_for_masters
Neil Trini Lasrado6e343e22016-03-09 17:02:59 +053058erpnext.patches.v6_20x.rename_project_name_to_project #2016-03-14
Anand Doshicdfa9a32014-06-09 11:26:50 +053059
Nabin Haitb63e99e2014-06-09 12:49:09 +053060erpnext.patches.v4_0.update_tax_amount_after_discount
Rushabh Mehtabd9b62f2014-11-28 11:45:02 +053061execute:frappe.permissions.reset_perms("GL Entry") #2014-06-09
62execute:frappe.permissions.reset_perms("Stock Ledger Entry") #2014-06-09
Nabin Haitd532d2f2014-06-09 15:59:04 +053063erpnext.patches.v4_0.create_custom_fields_for_india_specific_fields
Anand Doshic01db5f2014-06-09 18:01:14 +053064erpnext.patches.v4_0.save_default_letterhead
Nabin Hait91016ba2014-06-09 18:41:25 +053065erpnext.patches.v4_0.update_custom_print_formats_for_renamed_fields
Nabin Haite7f2d312014-06-12 14:58:09 +053066erpnext.patches.v4_0.update_other_charges_in_custom_purchase_print_formats
Anand Doshic1bfb632014-06-13 12:41:08 +053067erpnext.patches.v4_0.create_price_list_if_missing
Anand Doshiccf370f2014-06-16 13:50:11 +053068execute:frappe.db.sql("update `tabItem` set end_of_life=null where end_of_life='0000-00-00'") #2014-06-16
Nabin Hait91090042014-06-18 10:29:53 +053069erpnext.patches.v4_0.update_users_report_view_settings
Nabin Hait444f9562014-06-20 15:59:49 +053070erpnext.patches.v4_0.set_pricing_rule_for_buying_or_selling
Anand Doshi83da92f2014-06-23 18:04:07 +053071erpnext.patches.v4_0.set_naming_series_property_setter
Anand Doshi5ba7ab02014-06-27 21:00:05 +053072erpnext.patches.v4_1.set_outgoing_email_footer
Rushabh Mehta5f422762014-07-01 18:08:37 +053073erpnext.patches.v4_1.fix_sales_order_delivered_status
Anand Doshi8adb2112014-07-09 11:09:33 +053074erpnext.patches.v4_1.fix_delivery_and_billing_status
ankitjavalkarwork87633d62014-07-22 18:14:30 +053075execute:frappe.db.sql("update `tabAccount` set root_type='Liability' where root_type='Income' and report_type='Balance Sheet'")
nabinhait07961192014-07-29 12:12:09 +053076execute:frappe.delete_doc("DocType", "Payment to Invoice Matching Tool") # 29-07-2014
77execute:frappe.delete_doc("DocType", "Payment to Invoice Matching Tool Detail") # 29-07-2014
Anand Doshicb86d592014-07-22 19:02:11 +053078execute:frappe.delete_doc("Page", "trial-balance") #2014-07-22
Anand Doshibd748bd2014-07-29 08:51:41 +053079erpnext.patches.v4_2.delete_old_print_formats #2014-07-29
Anand Doshi35cc3202014-07-30 17:00:05 +053080erpnext.patches.v4_2.toggle_rounded_total #2014-07-30
Nabin Hait05b56d02014-08-07 15:03:25 +053081erpnext.patches.v4_2.fix_account_master_type
Rushabh Mehtac9bd3f52014-08-04 16:37:23 +053082erpnext.patches.v4_2.update_project_milestones
Anand Doshi6b8145a2014-08-08 13:24:18 +053083erpnext.patches.v4_2.add_currency_turkish_lira #2014-08-08
nabinhaitfe394422014-07-22 18:04:13 +053084execute:frappe.delete_doc("DocType", "Landed Cost Wizard")
Rushabh Mehta52f04da2014-08-25 15:17:20 +053085erpnext.patches.v4_2.default_website_style
Anand Doshi98eacdb2014-09-01 10:23:47 +053086erpnext.patches.v4_2.set_company_country
ankitjavalkarwork28a975d2014-08-26 15:04:56 +053087erpnext.patches.v4_2.update_sales_order_invoice_field_name
Nabin Hait7820b172014-10-10 18:02:23 +053088erpnext.patches.v4_2.seprate_manufacture_and_repack
89execute:frappe.delete_doc("Report", "Warehouse-Wise Stock Balance")
Nabin Hait8a28ccf2014-10-14 11:41:44 +053090execute:frappe.delete_doc("DocType", "Purchase Request")
91execute:frappe.delete_doc("DocType", "Purchase Request Item")
Nabin Hait9bbfca92014-10-15 12:24:38 +053092erpnext.patches.v4_2.recalculate_bom_cost
93erpnext.patches.v4_2.fix_gl_entries_for_stock_transactions
Nabin Hait9114c262014-11-04 15:33:41 +053094erpnext.patches.v4_2.update_requested_and_ordered_qty
Anand Doshi5745cf72015-03-31 17:31:53 +053095execute:frappe.rename_doc("DocType", "Support Ticket", "Issue", force=True)
Nabin Haita6a70a52014-11-12 17:00:42 +053096erpnext.patches.v4_4.make_email_accounts
Rushabh Mehta7d368752014-11-24 14:16:47 +053097execute:frappe.delete_doc("DocType", "Contact Control")
Nabin Hait2244ac42015-01-12 17:35:14 +053098erpnext.patches.v4_2.discount_amount
Nabin Haitcbdfb762014-12-31 13:30:36 +053099erpnext.patches.v4_2.reset_bom_costs
Nabin Haitc68646c2014-10-06 12:56:51 +0530100erpnext.patches.v5_0.update_frozen_accounts_permission_role
ankitjavalkarworke69a6112014-10-08 12:46:02 +0530101erpnext.patches.v5_0.update_dn_against_doc_fields
Nabin Haita6a70a52014-11-12 17:00:42 +0530102execute:frappe.db.sql("update `tabMaterial Request` set material_request_type = 'Material Transfer' where material_request_type = 'Transfer'")
Nabin Hait249bbbc2014-11-26 15:35:08 +0530103execute:frappe.reload_doc('stock', 'doctype', 'item')
104execute:frappe.db.sql("update `tabItem` i set apply_warehouse_wise_reorder_level=1, re_order_level=0, re_order_qty=0 where exists(select name from `tabItem Reorder` where parent=i.name)")
Neil Trini Lasrado8d344172014-12-12 11:33:50 +0530105erpnext.patches.v5_0.set_default_company_in_bom
Nabin Haitb1205202015-02-18 11:54:08 +0530106execute:frappe.reload_doc('crm', 'doctype', 'lead')
107execute:frappe.reload_doc('crm', 'doctype', 'opportunity')
Nabin Hait8f5b8c652015-05-11 11:15:14 +0530108erpnext.patches.v5_0.rename_taxes_and_charges_master
Nabin Hait5464ca82015-07-16 12:19:57 +0530109erpnext.patches.v5_1.sales_bom_rename
Nabin Hait56ac3fb2015-01-01 13:40:18 +0530110erpnext.patches.v5_0.rename_table_fieldnames
Nabin Hait56ac3fb2015-01-01 13:40:18 +0530111execute:frappe.db.sql("update `tabJournal Entry` set voucher_type='Journal Entry' where ifnull(voucher_type, '')=''")
Rushabh Mehta38c6b522015-04-23 13:14:17 +0530112erpnext.patches.v5_0.is_group
Nabin Haitebc4ae72015-01-02 12:46:49 +0530113erpnext.patches.v4_2.party_model
Anand Doshi5445c462015-04-02 17:42:02 +0530114erpnext.patches.v5_0.party_model_patch_fix
Nabin Hait56ac3fb2015-01-01 13:40:18 +0530115erpnext.patches.v4_1.fix_jv_remarks
Nabin Hait3f671ea2015-01-21 14:07:15 +0530116erpnext.patches.v4_2.update_landed_cost_voucher
Neil Trini Lasradodc65dc32015-01-27 12:27:10 +0530117erpnext.patches.v4_2.set_item_has_batch
Nabin Haitad3fd512015-02-20 14:23:42 +0530118erpnext.patches.v4_2.update_stock_uom_for_dn_in_sle
Nabin Haitebc4ae72015-01-02 12:46:49 +0530119erpnext.patches.v5_0.recalculate_total_amount_in_jv
Neil Trini Lasradobd2ac2f2015-01-05 16:01:57 +0530120erpnext.patches.v5_0.update_companywise_payment_account
Rushabh Mehta5bceebc2015-01-23 15:22:13 +0530121erpnext.patches.v5_0.remove_birthday_events
Neil Trini Lasrado41acbff2015-01-20 17:39:46 +0530122erpnext.patches.v5_0.update_item_name_in_bom
Rushabh Mehta46e03ea2015-02-17 10:45:50 +0530123erpnext.patches.v5_0.rename_customer_issue
Nabin Haitb1205202015-02-18 11:54:08 +0530124erpnext.patches.v5_0.rename_total_fields
Anand Doshi0fe85462015-02-17 14:37:45 +0530125erpnext.patches.v5_0.new_crm_module
Rushabh Mehta6de403f2013-12-13 14:10:14 +0530126erpnext.patches.v5_0.rename_customer_issue
Rushabh Mehta06072c12015-02-17 11:50:45 +0530127erpnext.patches.v5_0.update_material_transfer_for_manufacture
Pratik Vyasd102cba2015-04-07 15:32:15 +0530128execute:frappe.reload_doc('crm', 'doctype', 'opportunity_item')
Neil Trini Lasradoe9d45bc2015-02-18 20:01:27 +0530129erpnext.patches.v5_0.update_item_description_and_image
Anand Doshi5b73da92015-03-16 17:10:28 +0530130erpnext.patches.v5_0.update_material_transferred_for_manufacturing
Rushabh Mehtac7a11cc2015-02-19 16:28:35 +0530131erpnext.patches.v5_0.stock_entry_update_value
Rushabh Mehtadc93e0a2015-02-20 15:11:56 +0530132erpnext.patches.v5_0.convert_stock_reconciliation
Rushabh Mehtad54031f2015-02-22 22:32:39 +0530133erpnext.patches.v5_0.update_projects
Rushabh Mehtad06c1182015-02-23 11:31:35 +0530134erpnext.patches.v5_0.item_patches
Rushabh Mehtaa1da88a2015-02-23 20:18:38 +0530135erpnext.patches.v5_0.update_journal_entry_title
Nabin Hait6dfbc242015-02-23 20:00:17 +0530136erpnext.patches.v5_0.taxes_and_totals_in_party_currency
137erpnext.patches.v5_0.replace_renamed_fields_in_custom_scripts_and_print_formats
Rushabh Mehta6cdfd1e2015-02-25 15:55:57 +0530138erpnext.patches.v5_0.update_from_bom
Rushabh Mehta66a92792015-02-25 17:15:45 +0530139erpnext.patches.v5_0.update_account_types
Rushabh Mehta905f8322015-03-02 13:01:39 +0530140erpnext.patches.v5_0.update_sms_sender
Neil Trini Lasradofd0920f2015-03-02 17:33:48 +0530141erpnext.patches.v5_0.set_appraisal_remarks
Rushabh Mehta2cc585f2015-02-26 15:01:23 +0530142erpnext.patches.v5_0.update_time_log_title
Nabin Haitc3daa912015-04-16 13:13:18 +0530143erpnext.patches.v4_2.repost_sle_for_si_with_no_warehouse
Rushabh Mehta14ae4c32015-03-18 20:02:44 +0530144erpnext.patches.v5_0.newsletter
Nabin Haitb6061e52015-03-24 17:11:58 +0530145execute:frappe.delete_doc("DocType", "Chart of Accounts")
146execute:frappe.delete_doc("DocType", "Style Settings")
Rushabh Mehtabb2041d2015-04-02 22:11:16 +0530147erpnext.patches.v5_0.update_opportunity
Rushabh Mehtafd0f1cb2015-04-13 16:21:58 +0530148erpnext.patches.v5_0.opportunity_not_submittable
Nabin Haitfbdc0dc2015-05-08 01:24:28 +0530149execute:frappe.permissions.reset_perms("Purchase Taxes and Charges Template") #2014-06-09
Rushabh Mehta80f8b7b2015-04-19 16:18:15 +0530150execute:frappe.permissions.reset_perms("Expense Claim Type") #2014-06-19
Nabin Haitb650d692015-04-21 17:16:28 +0530151erpnext.patches.v5_0.execute_on_doctype_update
Nabin Hait2ba88c42015-04-17 12:05:00 +0530152erpnext.patches.v4_2.fix_recurring_orders
153erpnext.patches.v4_2.delete_gl_entries_for_cancelled_invoices
Neil Trini Lasradoe7ddb722015-04-15 18:21:53 +0530154erpnext.patches.v5_0.project_costing
Nabin Hait042f86e2015-04-28 13:00:23 +0530155erpnext.patches.v5_0.update_temporary_account
Nabin Haitd51b0922015-05-01 20:31:11 +0530156erpnext.patches.v5_0.update_advance_paid
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530157erpnext.patches.v5_0.link_warehouse_with_account
Nabin Hait08c0c042015-05-07 16:59:51 +0530158execute:frappe.delete_doc("Page", "stock-ledger")
Nabin Hait15c28442015-05-08 01:28:01 +0530159execute:frappe.delete_doc("Page","stock-level")
160erpnext.patches.v5_0.reclculate_planned_operating_cost_in_production_order
Nabin Hait6752b312015-05-08 12:49:35 +0530161erpnext.patches.v5_0.repost_requested_qty
Nabin Haitb8939722015-05-15 15:15:25 +0530162erpnext.patches.v5_0.fix_taxes_and_totals_in_party_currency
Pratik Vyas1a84d8e2015-05-19 12:23:52 +0530163erpnext.patches.v5_0.update_tax_amount_after_discount_in_purchase_cycle
Rushabh Mehtaa27cca92015-05-20 15:43:17 +0530164erpnext.patches.v5_0.rename_pos_setting
Rushabh Mehtaf29a6182015-05-25 10:50:48 +0530165erpnext.patches.v5_0.update_operation_description
166erpnext.patches.v5_0.set_footer_address
Rushabh Mehta306c49f2015-05-26 15:14:58 +0530167execute:frappe.db.set_value("Backup Manager", None, "send_backups_to_dropbox", 1 if frappe.db.get_value("Backup Manager", None, "upload_backups_to_dropbox") in ("Daily", "Weekly") else 0)
Pratik Vyas37ee57c2015-05-28 12:51:37 +0530168execute:frappe.db.sql_list("delete from `tabDocPerm` where parent='Issue' and modified_by='Administrator' and role='Guest'")
Rushabh Mehtab0b446e2015-05-29 12:43:39 +0530169erpnext.patches.v5_0.update_item_and_description_again
Rushabh Mehta5a700822016-03-03 16:47:36 +0530170erpnext.patches.v6_0.multi_currency
Rushabh Mehtaa33d4682015-06-01 17:15:42 +0530171erpnext.patches.v5_0.repost_gle_for_jv_with_multiple_party
172erpnext.patches.v5_0.portal_fixes
Valmik Jangla651dc5b2016-05-02 12:00:06 +0530173erpnext.patches.v5_0.reset_values_in_tools # 02-05-2016
Nabin Hait56fcf302015-06-05 18:21:25 +0530174execute:frappe.delete_doc("Page", "users")
Nabin Hait39046d62015-06-14 20:59:13 +0530175erpnext.patches.v5_0.update_material_transferred_for_manufacturing_again
Neil Trini Lasradoa25e8ea2015-06-30 17:15:13 +0530176erpnext.patches.v5_0.index_on_account_and_gl_entry
177execute:frappe.db.sql("""delete from `tabProject Task`""")
Rushabh Mehta6b35ea82015-07-01 12:25:18 +0530178erpnext.patches.v5_0.update_item_desc_in_invoice
179erpnext.patches.v5_1.fix_against_account
Neil Trini Lasradocc08c682015-07-13 12:35:20 +0530180erpnext.patches.v5_1.fix_credit_days_based_on
Neil Trini Lasrado4089b3d2015-07-07 16:58:14 +0530181execute:frappe.rename_doc("DocType", "Salary Manager", "Process Payroll", force=True)
Rushabh Mehta51e70862015-07-15 16:30:22 +0530182erpnext.patches.v5_1.rename_roles
Neil Trini Lasrado20523c42015-07-15 16:39:05 +0530183erpnext.patches.v5_1.default_bom
Rushabh Mehta1e8025b2015-07-24 15:16:25 +0530184execute:frappe.delete_doc("DocType", "Party Type")
Anand Doshi2f443a52015-07-30 14:44:43 +0530185execute:frappe.delete_doc("Module Def", "Contacts")
Nabin Hait17405d42015-07-30 13:47:02 +0530186erpnext.patches.v5_4.fix_reserved_qty_and_sle_for_packed_items # 30-07-2015
Nabin Haitd1dc6222015-07-29 16:37:02 +0530187execute:frappe.reload_doctype("Leave Type")
Nabin Hait94f15fc2015-08-03 11:16:55 +0530188execute:frappe.db.sql("update `tabLeave Type` set include_holiday=0")
Nabin Hait1db0b6d2015-08-03 15:37:41 +0530189erpnext.patches.v5_4.set_root_and_report_type
190erpnext.patches.v5_4.notify_system_managers_regarding_wrong_tax_calculation
Nabin Haitad44b002015-08-03 17:43:58 +0530191erpnext.patches.v5_4.fix_invoice_outstanding
Rushabh Mehtaa208c562015-08-03 13:18:54 +0530192execute:frappe.db.sql("update `tabStock Ledger Entry` set stock_queue = '[]' where voucher_type = 'Stock Reconciliation' and ifnull(qty_after_transaction, 0) = 0")
Anand Doshiaa5182b2015-08-04 23:06:01 +0530193erpnext.patches.v5_4.fix_missing_item_images
Nabin Hait3c3a3ec2015-08-07 17:17:03 +0530194erpnext.patches.v5_4.stock_entry_additional_costs
Anand Doshibfbf7682015-08-14 12:05:50 +0530195erpnext.patches.v5_4.cleanup_journal_entry #2015-08-14
Rushabh Mehta26459802015-08-13 11:46:01 +0530196execute:frappe.db.sql("update `tabProduction Order` pro set description = (select description from tabItem where name=pro.production_item) where ifnull(description, '') = ''")
Anand Doshib6c5b212015-08-18 16:27:20 +0530197erpnext.patches.v5_7.item_template_attributes
Anand Doshife13bfe2015-08-25 12:49:40 +0530198execute:frappe.delete_doc_if_exists("DocType", "Manage Variants")
199execute:frappe.delete_doc_if_exists("DocType", "Manage Variants Item")
Nabin Hait14aa9c52016-04-18 15:54:01 +0530200erpnext.patches.v4_2.repost_reserved_qty #2016-04-15
Nabin Haitfa5fcf52015-08-18 12:39:50 +0530201erpnext.patches.v5_4.update_purchase_cost_against_project
Anand Doshife13bfe2015-08-25 12:49:40 +0530202erpnext.patches.v5_8.update_order_reference_in_return_entries
203erpnext.patches.v5_8.add_credit_note_print_heading
204execute:frappe.delete_doc_if_exists("Print Format", "Credit Note - Negative Invoice")
Rushabh Mehta17679c62015-08-26 22:19:41 +0530205
206# V6.0
Nabin Hait59c4ae52015-09-03 10:46:48 +0530207erpnext.patches.v6_0.set_default_title # 2015-09-03
Rushabh Mehta91b0e232015-08-31 15:04:48 +0530208erpnext.patches.v6_0.default_activity_rate
Rushabh Mehta85abdc42015-09-03 10:29:38 +0530209execute:frappe.db.set_value("Stock Settings", None, "automatically_set_serial_nos_based_on_fifo", 1)
Nabin Haitd387dd32015-09-08 16:14:36 +0530210execute:frappe.db.sql("""update `tabProject` set percent_complete=round(percent_complete, 2) where percent_complete is not null""")
Nabin Hait83a358a2015-09-07 15:22:24 +0530211erpnext.patches.v6_0.fix_outstanding_amount
Nabin Hait2377cdf2015-09-09 18:45:41 +0530212erpnext.patches.v6_0.fix_planned_qty
Anand Doshie9b14e42015-09-17 17:46:37 +0530213erpnext.patches.v6_2.remove_newsletter_duplicates
Anand Doshi0332f832015-09-17 19:01:27 +0530214erpnext.patches.v6_2.fix_missing_default_taxes_and_lead
Rushabh Mehta72fbf902015-09-17 18:29:44 +0530215erpnext.patches.v6_3.convert_applicable_territory
Anand Doshid970b002015-09-25 17:57:20 +0530216erpnext.patches.v6_4.round_status_updater_percentages
Nabin Hait7a287a92015-10-02 15:32:00 +0530217erpnext.patches.v6_4.repost_gle_for_journal_entries_where_reference_name_missing
Rushabh Mehtad10ba852015-10-02 12:42:48 +0530218erpnext.patches.v6_4.fix_journal_entries_due_to_reconciliation
219erpnext.patches.v6_4.fix_status_in_sales_and_purchase_order
Nabin Haitb7e46c42015-10-12 16:46:29 +0530220erpnext.patches.v6_4.fix_modified_in_sales_order_and_purchase_order
Rushabh Mehta86125b22015-10-13 11:48:08 +0530221erpnext.patches.v6_4.fix_duplicate_bins
222erpnext.patches.v6_4.fix_sales_order_maintenance_status
Rushabh Mehta17429912015-09-29 16:36:57 +0530223erpnext.patches.v6_4.email_digest_update
Anand Doshi71ebad52015-10-02 17:14:40 +0530224
225# delete shopping cart doctypes
226execute:frappe.delete_doc_if_exists("DocType", "Applicable Territory")
227execute:frappe.delete_doc_if_exists("DocType", "Shopping Cart Price List")
228execute:frappe.delete_doc_if_exists("DocType", "Shopping Cart Taxes and Charges Master")
Anand Doshieca2e422016-01-27 12:36:21 +0530229
Rushabh Mehta73e73792015-10-07 11:07:43 +0530230erpnext.patches.v6_4.set_user_in_contact
Anand Doshi95dfc272015-10-20 19:03:30 +0530231erpnext.patches.v6_4.make_image_thumbnail #2015-10-20
Anand Doshi7c0eadb2015-10-20 17:30:02 +0530232erpnext.patches.v6_5.show_in_website_for_template_item
Nabin Haitbe464692015-10-21 12:06:51 +0530233erpnext.patches.v6_4.fix_expense_included_in_valuation
Nabin Haita90a0522015-10-28 15:50:26 +0530234execute:frappe.delete_doc_if_exists("Report", "Item-wise Last Purchase Rate")
Anand Doshic794ca52015-10-27 16:56:22 +0530235erpnext.patches.v6_6.fix_website_image
Nabin Hait7c654cd2015-11-06 10:37:26 +0530236erpnext.patches.v6_6.remove_fiscal_year_from_leave_allocation
Rushabh Mehta511421b2015-11-13 11:04:50 +0530237execute:frappe.delete_doc_if_exists("DocType", "Stock UOM Replace Utility")
Anand Doshi72218052015-11-23 19:00:11 +0530238erpnext.patches.v6_8.make_webform_standard #2015-11-23
Saurabh20628f52015-11-18 12:18:59 +0530239erpnext.patches.v6_8.move_drop_ship_to_po_items
Anand Doshiebae7262015-11-25 15:51:01 +0530240erpnext.patches.v6_10.fix_ordered_received_billed
Nabin Hait6c173e92015-11-30 16:07:43 +0530241erpnext.patches.v6_10.fix_jv_total_amount #2015-11-30
Rushabh Mehta9785cd32015-11-27 12:23:31 +0530242erpnext.patches.v6_10.email_digest_default_quote
Saurabh70ed6ed2015-12-08 14:02:53 +0530243erpnext.patches.v6_10.fix_billed_amount_in_drop_ship_po
Nabin Hait4ad09632015-12-08 16:50:20 +0530244erpnext.patches.v6_10.fix_delivery_status_of_drop_ship_item #2015-12-08
Nabin Haita974ab32015-12-08 12:56:14 +0530245erpnext.patches.v5_8.tax_rule #2015-12-08
Rushabh Mehta13ec41a2015-12-10 12:31:36 +0530246erpnext.patches.v6_12.set_overdue_tasks
Nabin Haita613ea82016-01-20 18:31:20 +0530247erpnext.patches.v6_16.update_billing_status_in_dn_and_pr
Anand Doshieca2e422016-01-27 12:36:21 +0530248erpnext.patches.v6_16.create_manufacturer_records
249execute:frappe.db.sql("update `tabPricing Rule` set title=name where title='' or title is null") #2016-01-27
Anand Doshi17d4fc42016-01-19 18:38:08 +0530250erpnext.patches.v6_20.set_party_account_currency_in_orders
Anand Doshi7b52dc92016-02-26 20:49:33 +0530251erpnext.patches.v6_19.comment_feed_communication
Rushabh Mehta3cdf3542016-02-08 11:52:22 +0530252erpnext.patches.v6_21.fix_reorder_level
Neil Trini Lasradoabd92482016-02-03 18:33:43 +0530253erpnext.patches.v6_21.rename_material_request_fields
Nabin Hait5a4c7d32016-02-29 12:01:44 +0530254erpnext.patches.v6_23.update_stopped_status_to_closed
Rushabh Mehta5839a8d2016-03-02 17:51:24 +0530255erpnext.patches.v6_24.repost_valuation_rate_for_serialized_items
256erpnext.patches.v6_24.set_recurring_id
shreyas6f8dfa42016-03-07 18:22:40 +0530257erpnext.patches.v6_20x.set_compact_print
Anand Doshi6d59a412016-03-10 14:20:49 +0530258execute:frappe.delete_doc_if_exists("Web Form", "contact") #2016-03-10
Anand Doshi4284fcf2016-03-11 17:16:30 +0530259erpnext.patches.v6_20x.remove_fiscal_year_from_holiday_list
Nabin Hait2646f842016-03-21 15:19:51 +0530260erpnext.patches.v6_24.map_customer_address_to_shipping_address_on_po
Rushabh Mehtac20c5362016-03-25 17:19:28 +0530261erpnext.patches.v6_27.fix_recurring_order_status
Nabin Hait3a15c922016-03-04 12:30:46 +0530262erpnext.patches.v6_20x.remove_customer_supplier_roles
Rushabh Mehtad42167e2016-05-11 16:47:14 +0530263erpnext.patches.v6_20x.update_product_bundle_description
Rushabh Mehtaf16f9c52016-04-08 17:20:50 +0530264erpnext.patches.v7_0.update_party_status
Rushabh Mehta15a7f212016-04-14 17:30:40 +0530265erpnext.patches.v7_0.update_item_projected
Rushabh Mehtac65726b2016-04-15 12:51:28 +0530266erpnext.patches.v7_0.fix_duplicate_icons
Rushabh Mehtad42167e2016-05-11 16:47:14 +0530267erpnext.patches.v7_0.remove_features_setup
Nabin Haitca909632016-05-18 12:22:42 +0530268erpnext.patches.v7_0.update_home_page
Nabin Haitb46d0212016-05-26 15:25:52 +0530269erpnext.patches.v7_0.create_budget_record
Nabin Hait591a5ab2016-05-26 17:41:39 +0530270execute:frappe.delete_doc_if_exists("Page", "financial-analytics")
271erpnext.patches.v7_0.update_project_in_gl_entry
Rushabh Mehtad56306a2016-06-09 15:56:48 +0530272execute:frappe.db.sql('update tabQuotation set status="Cancelled" where docstatus=2')
Rushabh Mehtaa55fb642016-06-14 15:54:17 +0530273execute:frappe.rename_doc("DocType", "Payments", "Sales Invoice Payment", force=True)
274erpnext.patches.v7_0.update_mins_to_first_response
Nabin Hait2effad32016-06-24 12:48:24 +0530275erpnext.patches.v6_20x.repost_valuation_rate_for_negative_inventory
Anand Doshi771ab0c2016-06-27 12:04:13 +0530276erpnext.patches.v7_0.re_route #2016-06-27
Saurabhdfbcdeb2016-05-24 07:49:00 +0530277erpnext.patches.v7_0.create_warehouse_nestedset
Anand Doshif576f3b2016-06-25 19:51:48 +0530278erpnext.patches.v7_0.system_settings_setup_complete
Saurabh7fecb502016-06-24 13:11:29 +0530279erpnext.patches.v7_0.merge_account_type_stock_and_warehouse_to_stock
Rohit Waghchaured6c986d2016-06-03 14:44:35 +0530280erpnext.patches.v7_0.set_naming_series_for_timesheet
281erpnext.patches.v7_0.convert_timelogbatch_to_timesheet
282erpnext.patches.v7_0.convert_timelog_to_timesheet
283erpnext.patches.v7_0.move_timelogbatch_from_salesinvoiceitem_to_salesinvoicetimesheet
284erpnext.patches.v7_0.remove_doctypes_and_reports
Saurabh99892c72016-06-26 22:32:05 +0530285erpnext.patches.v7_0.set_is_group_for_warehouse
Kanchan Chauhanfb3eb132016-06-29 15:04:08 +0530286erpnext.patches.v7_0.update_maintenance_module_in_doctype
Rohit Waghchaure4d8f4d72016-06-30 18:07:39 +0530287erpnext.patches.v7_0.update_prevdoc_values_for_supplier_quotation_item
Kanchan Chauhand963b762016-07-02 12:23:59 +0530288erpnext.patches.v7_0.rename_advance_table_fields
Rohit Waghchaurea71d9d32016-07-05 00:34:00 +0530289erpnext.patches.v7_0.rename_salary_components
290erpnext.patches.v7_0.rename_prevdoc_fields