2014-03-25 08:20:52 +00:00
execute:import unidecode # new requirement
2014-05-12 12:15:37 +00:00
erpnext.patches.v4_0.validate_v3_patch
2014-05-27 03:09:35 +00:00
erpnext.patches.v4_0.fix_employee_user_id
2014-05-28 13:19:13 +00:00
erpnext.patches.v4_0.remove_employee_role_if_no_employee
2014-05-12 12:15:37 +00:00
erpnext.patches.v4_0.update_user_properties
2014-05-28 13:19:13 +00:00
erpnext.patches.v4_0.apply_user_permissions
2014-05-12 12:15:37 +00:00
erpnext.patches.v4_0.move_warehouse_user_to_restrictions
2014-05-15 11:47:58 +00:00
erpnext.patches.v4_0.global_defaults_to_system_settings
2014-05-12 12:15:37 +00:00
erpnext.patches.v4_0.update_incharge_name_to_sales_person_in_maintenance_schedule
2014-02-14 10:17:51 +00:00
execute:frappe.reload_doc('accounts', 'doctype', 'sales_invoice') # 2014-01-29
execute:frappe.reload_doc('selling', 'doctype', 'sales_order') # 2014-01-29
execute:frappe.reload_doc('selling', 'doctype', 'quotation') # 2014-01-29
execute:frappe.reload_doc('stock', 'doctype', 'delivery_note') # 2014-01-29
2014-05-12 12:15:37 +00:00
erpnext.patches.v4_0.reload_sales_print_format
2014-02-14 10:17:51 +00:00
execute:frappe.reload_doc('accounts', 'doctype', 'purchase_invoice') # 2014-01-29
execute:frappe.reload_doc('buying', 'doctype', 'purchase_order') # 2014-01-29
execute:frappe.reload_doc('buying', 'doctype', 'supplier_quotation') # 2014-01-29
execute:frappe.reload_doc('stock', 'doctype', 'purchase_receipt') # 2014-01-29
execute:frappe.reload_doc('accounts', 'doctype', 'pos_setting') # 2014-01-29
execute:frappe.reload_doc('selling', 'doctype', 'customer') # 2014-01-29
execute:frappe.reload_doc('buying', 'doctype', 'supplier') # 2014-01-29
2014-05-12 12:15:37 +00:00
erpnext.patches.v4_0.map_charge_to_taxes_and_charges
2014-02-14 10:17:51 +00:00
execute:frappe.reload_doc('support', 'doctype', 'newsletter') # 2014-01-31
execute:frappe.reload_doc('hr', 'doctype', 'employee') # 2014-02-03
2014-02-26 07:05:33 +00:00
execute:frappe.db.sql("update tabPage set module='Core' where name='Setup'")
2015-07-24 09:46:25 +00:00
# inserted this patch here since Item types are being changed
erpnext.patches.v5_2.change_item_selects_to_checks
2014-05-12 12:15:37 +00:00
erpnext.patches.v4_0.fields_to_be_renamed
erpnext.patches.v4_0.rename_sitemap_to_route
erpnext.patches.v4_0.fix_contact_address
erpnext.patches.v4_0.customer_discount_to_pricing_rule
2014-03-03 09:35:28 +00:00
execute:frappe.db.sql("""delete from `tabWebsite Item Group` where ifnull(item_group, '')=''""")
2014-05-12 12:15:37 +00:00
erpnext.patches.v4_0.remove_module_home_pages
erpnext.patches.v4_0.split_email_settings
erpnext.patches.v4_0.import_country_codes
erpnext.patches.v4_0.countrywise_coa
2014-03-21 06:45:13 +00:00
execute:frappe.delete_doc("DocType", "MIS Control")
execute:frappe.delete_doc("Page", "Financial Statements")
2014-04-28 10:53:45 +00:00
execute:frappe.delete_doc("DocType", "Stock Ledger")
2014-05-06 06:48:50 +00:00
execute:frappe.delete_doc("DocType", "Grade")
2014-05-08 12:10:12 +00:00
execute:frappe.db.sql("delete from `tabWebsite Item Group` where ifnull(item_group, '')=''")
2014-05-13 12:07:56 +00:00
execute:frappe.delete_doc("Print Format", "SalesInvoice")
2014-05-14 13:21:45 +00:00
execute:import frappe.defaults;frappe.defaults.clear_default("price_list_currency")
2014-05-20 09:57:02 +00:00
erpnext.patches.v4_0.update_account_root_type
2014-06-04 09:48:24 +00:00
execute:frappe.delete_doc("Report", "Purchase In Transit")
2014-06-05 09:14:16 +00:00
erpnext.patches.v4_0.new_address_template
2014-06-05 12:26:12 +00:00
execute:frappe.delete_doc("DocType", "SMS Control")
2015-08-18 10:57:20 +00:00
execute:frappe.delete_doc_if_exists("DocType", "Bulk SMS") #2015-08-18
2014-06-06 10:58:03 +00:00
erpnext.patches.v4_0.fix_case_of_hr_module_def
2014-06-06 11:37:50 +00:00
erpnext.patches.v4_0.fix_address_template
2014-06-06 09:39:26 +00:00
# WATCHOUT: This patch reload's documents
erpnext.patches.v4_0.reset_permissions_for_masters
2014-06-09 05:56:50 +00:00
2014-06-09 07:19:09 +00:00
erpnext.patches.v4_0.update_tax_amount_after_discount
2014-11-28 06:15:02 +00:00
execute:frappe.permissions.reset_perms("GL Entry") #2014-06-09
execute:frappe.permissions.reset_perms("Stock Ledger Entry") #2014-06-09
2014-06-09 10:29:04 +00:00
erpnext.patches.v4_0.create_custom_fields_for_india_specific_fields
2014-06-09 12:31:14 +00:00
erpnext.patches.v4_0.save_default_letterhead
2014-06-09 13:11:25 +00:00
erpnext.patches.v4_0.update_custom_print_formats_for_renamed_fields
2014-06-12 09:28:09 +00:00
erpnext.patches.v4_0.update_other_charges_in_custom_purchase_print_formats
2014-06-13 07:11:08 +00:00
erpnext.patches.v4_0.create_price_list_if_missing
2014-06-16 08:20:11 +00:00
execute:frappe.db.sql("update `tabItem` set end_of_life=null where end_of_life='0000-00-00'") #2014-06-16
2014-06-18 04:59:53 +00:00
erpnext.patches.v4_0.update_users_report_view_settings
2014-06-20 10:29:49 +00:00
erpnext.patches.v4_0.set_pricing_rule_for_buying_or_selling
2014-06-23 12:34:07 +00:00
erpnext.patches.v4_0.set_naming_series_property_setter
2014-06-27 15:30:05 +00:00
erpnext.patches.v4_1.set_outgoing_email_footer
2014-07-01 12:38:37 +00:00
erpnext.patches.v4_1.fix_sales_order_delivered_status
2014-07-09 05:39:33 +00:00
erpnext.patches.v4_1.fix_delivery_and_billing_status
2014-07-22 12:44:30 +00:00
execute:frappe.db.sql("update `tabAccount` set root_type='Liability' where root_type='Income' and report_type='Balance Sheet'")
2014-07-29 06:42:09 +00:00
execute:frappe.delete_doc("DocType", "Payment to Invoice Matching Tool") # 29-07-2014
execute:frappe.delete_doc("DocType", "Payment to Invoice Matching Tool Detail") # 29-07-2014
2014-07-22 13:32:11 +00:00
execute:frappe.delete_doc("Page", "trial-balance") #2014-07-22
2014-07-29 03:21:41 +00:00
erpnext.patches.v4_2.delete_old_print_formats #2014-07-29
2014-07-30 11:30:05 +00:00
erpnext.patches.v4_2.toggle_rounded_total #2014-07-30
2014-08-07 09:33:25 +00:00
erpnext.patches.v4_2.fix_account_master_type
2014-08-04 11:07:23 +00:00
erpnext.patches.v4_2.update_project_milestones
2014-08-08 07:54:18 +00:00
erpnext.patches.v4_2.add_currency_turkish_lira #2014-08-08
2014-07-22 12:34:13 +00:00
execute:frappe.delete_doc("DocType", "Landed Cost Wizard")
2014-08-25 09:47:20 +00:00
erpnext.patches.v4_2.default_website_style
2014-09-01 04:53:47 +00:00
erpnext.patches.v4_2.set_company_country
2014-08-26 09:34:56 +00:00
erpnext.patches.v4_2.update_sales_order_invoice_field_name
2014-10-10 12:32:23 +00:00
erpnext.patches.v4_2.seprate_manufacture_and_repack
execute:frappe.delete_doc("Report", "Warehouse-Wise Stock Balance")
2014-10-14 06:11:44 +00:00
execute:frappe.delete_doc("DocType", "Purchase Request")
execute:frappe.delete_doc("DocType", "Purchase Request Item")
2014-10-15 06:54:38 +00:00
erpnext.patches.v4_2.recalculate_bom_cost
erpnext.patches.v4_2.fix_gl_entries_for_stock_transactions
2014-11-04 10:03:41 +00:00
erpnext.patches.v4_2.update_requested_and_ordered_qty
2015-03-31 12:01:53 +00:00
execute:frappe.rename_doc("DocType", "Support Ticket", "Issue", force=True)
2014-11-12 11:30:42 +00:00
erpnext.patches.v4_4.make_email_accounts
2014-11-24 08:46:47 +00:00
execute:frappe.delete_doc("DocType", "Contact Control")
2015-01-12 12:05:14 +00:00
erpnext.patches.v4_2.discount_amount
2014-12-31 08:00:36 +00:00
erpnext.patches.v4_2.reset_bom_costs
2014-10-06 07:26:51 +00:00
erpnext.patches.v5_0.update_frozen_accounts_permission_role
2014-10-08 07:16:02 +00:00
erpnext.patches.v5_0.update_dn_against_doc_fields
2014-11-12 11:30:42 +00:00
execute:frappe.db.sql("update `tabMaterial Request` set material_request_type = 'Material Transfer' where material_request_type = 'Transfer'")
2014-11-26 10:05:08 +00:00
execute:frappe.reload_doc('stock', 'doctype', 'item')
execute: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)")
2014-12-12 06:03:50 +00:00
erpnext.patches.v5_0.set_default_company_in_bom
2015-02-18 06:24:08 +00:00
execute:frappe.reload_doc('crm', 'doctype', 'lead')
execute:frappe.reload_doc('crm', 'doctype', 'opportunity')
2015-05-11 05:45:14 +00:00
erpnext.patches.v5_0.rename_taxes_and_charges_master
2015-07-16 06:49:57 +00:00
erpnext.patches.v5_1.sales_bom_rename
2015-01-01 08:10:18 +00:00
erpnext.patches.v5_0.rename_table_fieldnames
execute:frappe.db.sql("update `tabJournal Entry` set voucher_type='Journal Entry' where ifnull(voucher_type, '')=''")
2015-04-23 07:44:17 +00:00
erpnext.patches.v5_0.is_group
2015-01-02 07:16:49 +00:00
erpnext.patches.v4_2.party_model
2015-04-02 12:12:02 +00:00
erpnext.patches.v5_0.party_model_patch_fix
2015-01-01 08:10:18 +00:00
erpnext.patches.v4_1.fix_jv_remarks
2015-01-21 08:37:15 +00:00
erpnext.patches.v4_2.update_landed_cost_voucher
2015-01-27 06:57:10 +00:00
erpnext.patches.v4_2.set_item_has_batch
2015-02-20 08:53:42 +00:00
erpnext.patches.v4_2.update_stock_uom_for_dn_in_sle
2015-01-02 07:16:49 +00:00
erpnext.patches.v5_0.recalculate_total_amount_in_jv
2015-01-05 10:31:57 +00:00
erpnext.patches.v5_0.update_companywise_payment_account
2015-01-23 09:52:13 +00:00
erpnext.patches.v5_0.remove_birthday_events
2015-01-20 12:09:46 +00:00
erpnext.patches.v5_0.update_item_name_in_bom
2015-02-17 05:15:50 +00:00
erpnext.patches.v5_0.rename_customer_issue
2015-02-18 06:24:08 +00:00
erpnext.patches.v5_0.rename_total_fields
2015-02-17 09:07:45 +00:00
erpnext.patches.v5_0.new_crm_module
2015-02-17 05:15:50 +00:00
erpnext.patches.v5_0.rename_customer_issue
2015-02-17 06:20:45 +00:00
erpnext.patches.v5_0.update_material_transfer_for_manufacture
2015-04-07 10:02:15 +00:00
execute:frappe.reload_doc('crm', 'doctype', 'opportunity_item')
2015-02-18 14:31:27 +00:00
erpnext.patches.v5_0.update_item_description_and_image
2015-03-16 11:40:28 +00:00
erpnext.patches.v5_0.update_material_transferred_for_manufacturing
2015-02-19 10:58:35 +00:00
erpnext.patches.v5_0.stock_entry_update_value
2015-02-20 09:41:56 +00:00
erpnext.patches.v5_0.convert_stock_reconciliation
2015-02-22 17:02:39 +00:00
erpnext.patches.v5_0.update_projects
2015-02-23 06:01:35 +00:00
erpnext.patches.v5_0.item_patches
2015-02-23 14:48:38 +00:00
erpnext.patches.v5_0.update_journal_entry_title
2015-02-23 14:30:17 +00:00
erpnext.patches.v5_0.taxes_and_totals_in_party_currency
erpnext.patches.v5_0.replace_renamed_fields_in_custom_scripts_and_print_formats
2015-02-25 10:25:57 +00:00
erpnext.patches.v5_0.update_from_bom
2015-02-25 11:45:45 +00:00
erpnext.patches.v5_0.update_account_types
2015-03-02 07:31:39 +00:00
erpnext.patches.v5_0.update_sms_sender
2015-03-02 12:03:48 +00:00
erpnext.patches.v5_0.set_appraisal_remarks
2015-02-26 09:31:23 +00:00
erpnext.patches.v5_0.update_time_log_title
2015-04-16 07:43:18 +00:00
erpnext.patches.v4_2.repost_sle_for_si_with_no_warehouse
2015-03-18 14:32:44 +00:00
erpnext.patches.v5_0.newsletter
2015-03-24 11:41:58 +00:00
execute:frappe.delete_doc("DocType", "Chart of Accounts")
execute:frappe.delete_doc("DocType", "Style Settings")
2015-04-02 16:41:16 +00:00
erpnext.patches.v5_0.update_opportunity
2015-04-13 10:51:58 +00:00
erpnext.patches.v5_0.opportunity_not_submittable
2015-05-07 19:54:28 +00:00
execute:frappe.permissions.reset_perms("Purchase Taxes and Charges Template") #2014-06-09
2015-04-19 10:48:15 +00:00
execute:frappe.permissions.reset_perms("Expense Claim Type") #2014-06-19
2015-04-21 11:46:28 +00:00
erpnext.patches.v5_0.execute_on_doctype_update
2015-04-17 06:35:00 +00:00
erpnext.patches.v4_2.fix_recurring_orders
erpnext.patches.v4_2.delete_gl_entries_for_cancelled_invoices
2015-04-15 12:51:53 +00:00
erpnext.patches.v5_0.project_costing
2015-04-28 07:30:23 +00:00
erpnext.patches.v5_0.update_temporary_account
2015-05-01 15:01:11 +00:00
erpnext.patches.v5_0.update_advance_paid
2015-05-06 13:15:47 +00:00
erpnext.patches.v5_0.link_warehouse_with_account
2015-05-07 11:29:51 +00:00
execute:frappe.delete_doc("Page", "stock-ledger")
2015-05-07 19:58:01 +00:00
execute:frappe.delete_doc("Page","stock-level")
erpnext.patches.v5_0.reclculate_planned_operating_cost_in_production_order
2015-05-08 07:19:35 +00:00
erpnext.patches.v5_0.repost_requested_qty
2015-05-15 09:45:25 +00:00
erpnext.patches.v5_0.fix_taxes_and_totals_in_party_currency
2015-05-19 06:53:52 +00:00
erpnext.patches.v5_0.update_tax_amount_after_discount_in_purchase_cycle
2015-05-20 10:13:17 +00:00
erpnext.patches.v5_0.rename_pos_setting
2015-05-25 05:20:48 +00:00
erpnext.patches.v5_0.update_operation_description
erpnext.patches.v5_0.set_footer_address
2015-05-26 09:44:58 +00:00
execute: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)
2015-05-28 07:21:37 +00:00
execute:frappe.db.sql_list("delete from `tabDocPerm` where parent='Issue' and modified_by='Administrator' and role='Guest'")
2015-05-29 07:13:39 +00:00
erpnext.patches.v5_0.update_item_and_description_again
2015-06-01 11:45:42 +00:00
erpnext.patches.v5_0.repost_gle_for_jv_with_multiple_party
erpnext.patches.v5_0.portal_fixes
2015-06-05 06:45:01 +00:00
erpnext.patches.v5_0.reset_values_in_tools
2015-06-05 12:51:25 +00:00
execute:frappe.delete_doc("Page", "users")
2015-06-14 15:29:13 +00:00
erpnext.patches.v5_0.update_material_transferred_for_manufacturing_again
2015-06-30 11:45:13 +00:00
erpnext.patches.v5_0.index_on_account_and_gl_entry
execute:frappe.db.sql("""delete from `tabProject Task`""")
2015-07-01 06:55:18 +00:00
erpnext.patches.v5_0.update_item_desc_in_invoice
erpnext.patches.v5_1.fix_against_account
2015-07-13 07:05:20 +00:00
erpnext.patches.v5_1.fix_credit_days_based_on
2015-07-07 11:28:14 +00:00
execute:frappe.rename_doc("DocType", "Salary Manager", "Process Payroll", force=True)
2015-07-15 11:00:22 +00:00
erpnext.patches.v5_1.rename_roles
2015-07-15 11:09:05 +00:00
erpnext.patches.v5_1.default_bom
2015-07-24 09:46:25 +00:00
execute:frappe.delete_doc("DocType", "Party Type")
2015-07-30 09:14:43 +00:00
execute:frappe.delete_doc("Module Def", "Contacts")
2015-07-30 08:17:02 +00:00
erpnext.patches.v5_4.fix_reserved_qty_and_sle_for_packed_items # 30-07-2015
2015-07-29 11:07:02 +00:00
execute:frappe.reload_doctype("Leave Type")
2015-08-03 05:46:55 +00:00
execute:frappe.db.sql("update `tabLeave Type` set include_holiday=0")
2015-08-03 10:07:41 +00:00
erpnext.patches.v5_4.set_root_and_report_type
erpnext.patches.v5_4.notify_system_managers_regarding_wrong_tax_calculation
2015-08-03 12:13:58 +00:00
erpnext.patches.v5_4.fix_invoice_outstanding
2015-08-03 07:48:54 +00:00
execute:frappe.db.sql("update `tabStock Ledger Entry` set stock_queue = '[]' where voucher_type = 'Stock Reconciliation' and ifnull(qty_after_transaction, 0) = 0")
2015-08-04 17:36:01 +00:00
erpnext.patches.v5_4.fix_missing_item_images
2015-08-07 11:47:03 +00:00
erpnext.patches.v5_4.stock_entry_additional_costs
2015-08-14 06:35:50 +00:00
erpnext.patches.v5_4.cleanup_journal_entry #2015-08-14
2015-08-13 06:16:01 +00:00
execute:frappe.db.sql("update `tabProduction Order` pro set description = (select description from tabItem where name=pro.production_item) where ifnull(description, '') = ''")
2015-08-18 10:57:20 +00:00
erpnext.patches.v5_7.item_template_attributes
2015-08-25 07:19:40 +00:00
execute:frappe.delete_doc_if_exists("DocType", "Manage Variants")
execute:frappe.delete_doc_if_exists("DocType", "Manage Variants Item")
2015-08-20 10:08:52 +00:00
erpnext.patches.v4_2.repost_reserved_qty #2015-08-20
2015-08-18 07:09:50 +00:00
erpnext.patches.v5_4.update_purchase_cost_against_project
2015-08-25 07:19:40 +00:00
erpnext.patches.v5_8.update_order_reference_in_return_entries
erpnext.patches.v5_8.add_credit_note_print_heading
execute:frappe.delete_doc_if_exists("Print Format", "Credit Note - Negative Invoice")
2015-08-26 16:49:41 +00:00
# V6.0
2015-09-03 05:16:48 +00:00
erpnext.patches.v6_0.set_default_title # 2015-09-03
2015-08-31 09:34:48 +00:00
erpnext.patches.v6_0.default_activity_rate
2015-09-03 04:59:38 +00:00
execute:frappe.db.set_value("Stock Settings", None, "automatically_set_serial_nos_based_on_fifo", 1)
2015-09-08 10:44:36 +00:00
execute:frappe.db.sql("""update `tabProject` set percent_complete=round(percent_complete, 2) where percent_complete is not null""")
2015-09-07 09:52:24 +00:00
erpnext.patches.v6_0.fix_outstanding_amount
2015-09-09 13:15:41 +00:00
erpnext.patches.v6_0.fix_planned_qty
2015-09-17 12:16:37 +00:00
erpnext.patches.v6_0.multi_currency
erpnext.patches.v6_2.remove_newsletter_duplicates
2015-09-17 13:31:27 +00:00
erpnext.patches.v6_2.fix_missing_default_taxes_and_lead
2015-09-17 12:59:44 +00:00
erpnext.patches.v5_8.tax_rule
erpnext.patches.v6_3.convert_applicable_territory
2015-09-25 12:27:20 +00:00
erpnext.patches.v6_4.round_status_updater_percentages
2015-10-02 10:02:00 +00:00
erpnext.patches.v6_4.repost_gle_for_journal_entries_where_reference_name_missing
2015-10-02 07:12:48 +00:00
erpnext.patches.v6_4.fix_journal_entries_due_to_reconciliation
erpnext.patches.v6_4.fix_status_in_sales_and_purchase_order
2015-10-12 11:16:29 +00:00
erpnext.patches.v6_4.fix_modified_in_sales_order_and_purchase_order
2015-10-13 06:18:08 +00:00
erpnext.patches.v6_4.fix_duplicate_bins
erpnext.patches.v6_4.fix_sales_order_maintenance_status
2015-09-29 11:06:57 +00:00
erpnext.patches.v6_4.email_digest_update
2015-10-02 11:44:40 +00:00
# delete shopping cart doctypes
execute:frappe.delete_doc_if_exists("DocType", "Applicable Territory")
execute:frappe.delete_doc_if_exists("DocType", "Shopping Cart Price List")
execute:frappe.delete_doc_if_exists("DocType", "Shopping Cart Taxes and Charges Master")
2015-10-07 05:37:43 +00:00
erpnext.patches.v6_4.set_user_in_contact
2015-10-20 13:33:30 +00:00
erpnext.patches.v6_4.make_image_thumbnail #2015-10-20
2015-10-20 12:00:02 +00:00
erpnext.patches.v6_5.show_in_website_for_template_item
2015-10-21 06:36:51 +00:00
erpnext.patches.v6_4.fix_expense_included_in_valuation
2015-10-28 10:20:26 +00:00
execute:frappe.delete_doc_if_exists("Report", "Item-wise Last Purchase Rate")
2015-10-27 11:26:22 +00:00
erpnext.patches.v6_6.fix_website_image
2015-11-06 05:07:26 +00:00
erpnext.patches.v6_6.remove_fiscal_year_from_leave_allocation
2015-11-13 05:34:50 +00:00
execute:frappe.delete_doc_if_exists("DocType", "Stock UOM Replace Utility")
2015-11-23 13:30:11 +00:00
erpnext.patches.v6_8.make_webform_standard #2015-11-23
2015-11-18 06:48:59 +00:00
erpnext.patches.v6_8.move_drop_ship_to_po_items
2015-11-25 10:21:01 +00:00
erpnext.patches.v6_10.fix_ordered_received_billed