blob: c9a0ab5aedbd94d4325956670cb04bba799bb620 [file] [log] [blame]
Rushabh Mehta3966f1d2012-02-23 12:35:32 +05301# ERPNext - web based ERP (http://erpnext.com)
2# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
3#
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
Nabin Haita0d6b342013-01-29 10:48:33 +053015# along with this program. If not, see <http://www.gnu.org/licenses/>.
Rushabh Mehta3966f1d2012-02-23 12:35:32 +053016
Anand Doshi486f9df2012-07-19 13:40:31 +053017from __future__ import unicode_literals
Anand Doshid56d57d2012-01-02 16:25:05 +053018patch_list = [
Anand Doshifd6d2e02013-03-08 14:27:20 +053019 "execute:webnotes.reload_doc('core', 'doctype', 'docfield')",
Anand Doshi30bd65a2013-04-07 10:19:18 +053020 "execute:webnotes.reload_doc('core', 'doctype', 'docperm') # 2013-04-07",
Anand Doshifd6d2e02013-03-08 14:27:20 +053021 "execute:webnotes.reload_doc('core', 'doctype', 'report')",
Nabin Haitf7df8b22013-03-12 10:58:11 +053022 "execute:webnotes.reload_doc('core', 'doctype', 'doctype')",
Nabin Haita642ae12013-01-18 10:49:39 +053023 "patches.mar_2012.so_rv_mapper_fix",
24 "patches.mar_2012.clean_property_setter",
Nabin Haita642ae12013-01-18 10:49:39 +053025 "patches.april_2012.naming_series_patch",
Nabin Haita642ae12013-01-18 10:49:39 +053026 "patches.mar_2012.cleanup_control_panel",
27 "patches.mar_2012.doctype_get_refactor",
28 "patches.mar_2012.delete_docformat",
29 "patches.mar_2012.usertags",
30 "patches.april_2012.reload_c_form",
31 "patches.april_2012.after_sync_cleanup",
32 "patches.april_2012.remove_default_from_rv_detail",
33 "patches.april_2012.update_role_in_address",
34 "patches.april_2012.update_permlevel_in_address",
35 "patches.april_2012.update_appraisal_permission",
36 "patches.april_2012.serial_no_fixes",
37 "patches.april_2012.repost_stock_for_posting_time",
38 "patches.may_2012.cleanup_property_setter",
39 "patches.may_2012.rename_prev_doctype",
40 "patches.may_2012.cleanup_notification_control",
41 "patches.may_2012.renamedt_in_custom_search_criteria",
42 "patches.may_2012.stock_reco_patch",
43 "patches.may_2012.reload_reports",
44 "patches.may_2012.page_role_series_fix",
45 "patches.may_2012.reload_sales_invoice_pf",
46 "patches.may_2012.std_pf_readonly",
47 "patches.may_2012.reload_so_pending_items",
48 "patches.may_2012.customize_form_cleanup",
49 "patches.may_2012.cs_server_readonly",
50 "patches.may_2012.clear_session_cache",
51 "patches.may_2012.same_purchase_rate_patch",
52 "patches.may_2012.create_report_manager_role",
53 "patches.may_2012.reload_customer_address_contact",
54 "patches.may_2012.profile_perm_patch",
55 "patches.may_2012.remove_euro_currency",
56 "patches.may_2012.remove_communication_log",
57 "patches.june_2012.barcode_in_feature_setup",
58 "patches.june_2012.copy_uom_for_pur_inv_item",
59 "patches.june_2012.fetch_organization_from_lead",
60 "patches.june_2012.reports_list_permission",
61 "patches.june_2012.support_ticket_autoreply",
62 "patches.june_2012.series_unique_patch",
63 "patches.june_2012.set_recurring_type",
64 "patches.june_2012.alter_tabsessions",
65 "patches.june_2012.delete_old_parent_entries",
66 "patches.april_2012.delete_about_contact",
67 "patches.july_2012.reload_pr_po_mapper",
68 "patches.july_2012.address_contact_perms",
69 "patches.july_2012.packing_list_cleanup_and_serial_no",
70 "patches.july_2012.deprecate_import_data_control",
71 "patches.july_2012.default_freeze_account",
72 "patches.july_2012.update_purchase_tax",
73 "patches.june_2012.cms2",
74 "patches.july_2012.auth_table",
75 "patches.july_2012.remove_event_role_owner_match",
76 "patches.july_2012.deprecate_bulk_rename",
77 "patches.july_2012.blog_guest_permission",
78 "patches.july_2012.bin_permission",
79 "patches.july_2012.project_patch_repeat",
80 "patches.july_2012.repost_stock_due_to_wrong_packing_list",
81 "patches.july_2012.supplier_quotation",
82 "patches.august_2012.report_supplier_quotations",
83 "patches.august_2012.task_allocated_to_assigned",
84 "patches.august_2012.change_profile_permission",
85 "patches.august_2012.changed_blog_date_format",
86 "patches.august_2012.repost_billed_amt",
87 "patches.august_2012.remove_cash_flow_statement",
88 "patches.september_2012.stock_report_permissions_for_accounts",
89 "patches.september_2012.communication_delete_permission",
90 "patches.september_2012.all_permissions_patch",
91 "patches.september_2012.customer_permission_patch",
92 "patches.september_2012.add_stock_ledger_entry_index",
93 "patches.september_2012.plot_patch",
94 "patches.september_2012.event_permission",
95 "patches.september_2012.repost_stock",
96 "patches.september_2012.reload_gross_profit",
97 "patches.september_2012.rebuild_trees",
98 "patches.september_2012.deprecate_account_balance",
99 "patches.september_2012.profile_delete_permission",
100 "patches.october_2012.update_permission",
101 "patches.october_2012.reload_gl_mapper",
102 "patches.october_2012.fix_wrong_vouchers",
103 "patches.october_2012.remove_old_customer_contact_address",
104 "patches.october_2012.company_fiscal_year_docstatus_patch",
105 "patches.october_2012.update_account_property",
106 "patches.october_2012.remove_old_trial_bal",
107 "patches.october_2012.fix_cancelled_gl_entries",
108 "patches.october_2012.custom_script_delete_permission",
109 "patches.november_2012.custom_field_insert_after",
110 "patches.november_2012.delete_item_sales_register1",
111 "patches.november_2012.rename_employee_leave_balance_report",
112 "patches.november_2012.report_permissions",
113 "patches.november_2012.customer_issue_allocated_to_assigned",
114 "patches.november_2012.reset_appraisal_permissions",
115 "patches.november_2012.disable_cancelled_profiles",
116 "patches.november_2012.remove_old_unbilled_items_report",
117 "patches.november_2012.support_ticket_response_to_communication",
118 "patches.november_2012.cancelled_bom_patch",
119 "patches.november_2012.communication_sender_and_recipient",
120 "patches.november_2012.update_delivered_billed_percentage_for_pos",
121 "patches.november_2012.add_theme_to_profile",
122 "patches.november_2012.add_employee_field_in_employee",
123 "patches.november_2012.leave_application_cleanup",
124 "patches.november_2012.production_order_patch",
125 "patches.november_2012.gle_floating_point_issue",
126 "patches.december_2012.deprecate_tds",
127 "patches.december_2012.expense_leave_reload",
128 "patches.december_2012.repost_ordered_qty",
129 "patches.december_2012.repost_projected_qty",
130 "patches.december_2012.reload_debtors_creditors_ledger",
131 "patches.december_2012.website_cache_refactor",
132 "patches.december_2012.production_cleanup",
133 "patches.december_2012.fix_default_print_format",
134 "patches.december_2012.file_list_rename",
135 "patches.december_2012.replace_createlocal",
Nabin Haita642ae12013-01-18 10:49:39 +0530136 "patches.december_2012.remove_quotation_next_contact",
137 "patches.december_2012.stock_entry_cleanup",
138 "patches.december_2012.production_order_naming_series",
139 "patches.december_2012.rebuild_item_group_tree",
140 "patches.december_2012.address_title",
141 "patches.december_2012.delete_form16_print_format",
142 "patches.december_2012.remove_project_mapper",
143 "patches.december_2012.update_print_width",
144 "patches.january_2013.remove_bad_permissions",
145 "patches.january_2013.deprecate_stock_search_criteria",
146 "patches.january_2013.remove_support_search_criteria",
147 "patches.january_2013.holiday_list_patch",
148 "patches.january_2013.stock_reconciliation_patch",
149 "patches.january_2013.report_permission",
150 "patches.january_2013.give_report_permission_on_read",
151 "patches.january_2013.update_closed_on",
152 "patches.january_2013.change_patch_structure",
153 "patches.january_2013.update_country_info",
154 "patches.january_2013.remove_tds_entry_from_gl_mapper",
Rushabh Mehtaf5b04cf2013-01-21 10:14:10 +0530155 "patches.january_2013.update_number_format",
Anand Doshi28655712013-01-18 12:32:00 +0530156 "patches.january_2013.purchase_price_list",
Rushabh Mehta6dd9d452013-01-21 18:44:43 +0530157 "execute:webnotes.reload_doc('accounts','Print Format','Payment Receipt Voucher')",
Nabin Haitf0881a92013-01-22 11:21:55 +0530158 "patches.january_2013.update_fraction_for_usd",
Rushabh Mehta6382a422013-01-23 10:09:28 +0530159 "patches.january_2013.enable_currencies",
Nabin Haita8454e22013-01-23 16:01:35 +0530160 "patches.january_2013.remove_unwanted_permission",
Nabin Hait291e8c22013-01-23 16:06:44 +0530161 "patches.january_2013.remove_landed_cost_master",
Rushabh Mehtac5ddb852013-04-03 10:06:54 +0530162 "execute:webnotes.reload_doc('core', 'doctype', 'print_format')",
Nabin Haite37b3442013-01-25 17:38:48 +0530163 "patches.january_2013.reload_print_format",
Rushabh Mehta83e08362013-01-25 15:11:26 +0530164 "patches.january_2013.rebuild_tree",
Rushabh Mehtafe99c292013-01-28 15:30:02 +0530165 "execute:webnotes.reload_doc('core','doctype','docfield') #2013-01-28",
Rushabh Mehta6abb2e62013-01-28 17:00:59 +0530166 "patches.january_2013.tabsessions_to_myisam",
Nabin Haitce4178b2013-02-01 12:14:45 +0530167 "patches.february_2013.remove_gl_mapper",
168 "patches.february_2013.reload_bom_replace_tool_permission",
Nabin Haitc40a64a2013-02-01 14:23:22 +0530169 "patches.february_2013.payment_reconciliation_reset_values",
Nabin Haitc06e29d2013-02-01 18:35:35 +0530170 "patches.february_2013.remove_sales_order_pending_items",
Nabin Hait7bdf27b2013-02-05 15:52:46 +0530171 "patches.february_2013.account_negative_balance",
Anand Doshi22807a62013-02-06 15:41:32 +0530172 "patches.february_2013.remove_account_utils_folder",
Rushabh Mehta4b9827a2013-02-12 19:20:39 +0530173 "patches.february_2013.update_company_in_leave_application",
Nabin Hait362455e2013-02-13 15:50:39 +0530174 "execute:webnotes.conn.sql_ddl('alter table tabSeries change `name` `name` varchar(100)')",
Anand Doshi86af3522013-02-13 18:04:21 +0530175 "execute:webnotes.conn.sql('update tabUserRole set parentfield=\"user_roles\" where parentfield=\"userroles\"')",
Anand Doshi0cfdeec2013-02-16 11:08:55 +0530176 "patches.february_2013.p01_event",
Anand Doshi96bebb42013-02-16 15:09:34 +0530177 "execute:webnotes.delete_doc('Page', 'Calendar')",
Anand Doshi27947362013-02-16 18:44:40 +0530178 "patches.february_2013.p02_email_digest",
Anand Doshi236cc172013-02-18 13:49:15 +0530179 "patches.february_2013.p03_material_request",
Rushabh Mehta9c880da2013-02-18 14:28:34 +0530180 "patches.february_2013.p04_remove_old_doctypes",
Anand Doshic1db0a62013-02-20 16:08:21 +0530181 "execute:webnotes.delete_doc('DocType', 'Plot Control')",
Anand Doshi78352d12013-02-18 17:09:11 +0530182 "patches.february_2013.p05_leave_application",
Nabin Hait66ea0862013-02-19 15:13:23 +0530183 "patches.february_2013.gle_floating_point_issue_revisited",
184 "patches.february_2013.fix_outstanding",
Nabin Hait452de982013-02-19 16:18:00 +0530185 'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Classic") # 2013-02-19',
186 'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Modern") # 2013-02-19',
187 'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Spartan") # 2013-02-19',
Nabin Hait704d5f02013-02-19 16:23:21 +0530188 "execute:webnotes.delete_doc('DocType', 'Service Order')",
189 "execute:webnotes.delete_doc('DocType', 'Service Quotation')",
190 "execute:webnotes.delete_doc('DocType', 'Service Order Detail')",
191 "execute:webnotes.delete_doc('DocType', 'Service Quotation Detail')",
Anand Doshia341af12013-02-21 13:38:58 +0530192 "patches.february_2013.p06_material_request_mappers",
Rushabh Mehta90098d22013-02-22 17:54:50 +0530193 "execute:webnotes.delete_doc('Page', 'Query Report')",
194 "execute:webnotes.delete_doc('Search Criteria', 'employeewise_balance_leave_report')",
Nabin Hait1bebb4a2013-02-22 18:02:15 +0530195 "execute:webnotes.delete_doc('Search Criteria', 'employee_leave_balance_report')",
Nabin Haitad8a46c2013-02-22 17:58:54 +0530196 "patches.february_2013.repost_reserved_qty",
Anand Doshi7bc7aef2013-02-25 13:12:37 +0530197 "execute:webnotes.reload_doc('core', 'doctype', 'report') # 2013-02-25",
Rushabh Mehta22681df2013-02-23 17:13:44 +0530198 "execute:webnotes.conn.sql(\"update `tabReport` set report_type=if(ifnull(query, '')='', 'Report Builder', 'Query Report') where is_standard='No'\")",
Anand Doshib60aef52013-02-25 15:22:20 +0530199 "execute:webnotes.conn.sql(\"update `tabReport` set report_name=name where ifnull(report_name,'')='' and is_standard='No'\")",
200 "patches.february_2013.p08_todo_query_report",
Nabin Haita4d8e6b2013-02-26 11:15:34 +0530201 "execute:webnotes.delete_doc('Search Criteria', 'gross_profit') # 2013-02-26",
202 'execute:webnotes.reload_doc("accounts", "Print Format", "Sales Invoice Classic") # 2013-02-26',
203 'execute:webnotes.reload_doc("accounts", "Print Format", "Sales Invoice Modern") # 2013-02-26',
204 'execute:webnotes.reload_doc("accounts", "Print Format", "Sales Invoice Spartan") # 2013-02-26',
Rushabh Mehtaed196662013-02-26 16:36:41 +0530205 "execute:(not webnotes.conn.exists('Role', 'Projects Manager')) and webnotes.doc({'doctype':'Role', 'role_name':'Projects Manager'}).insert()",
Anand Doshia8caa5e2013-02-28 16:45:37 +0530206 "patches.february_2013.p09_remove_cancelled_warehouses",
Nabin Hait95a72a72013-03-01 11:07:07 +0530207 "patches.march_2013.update_po_prevdoc_doctype",
Rushabh Mehtaf934a242013-03-04 15:34:45 +0530208 "patches.february_2013.p09_timesheets",
Rushabh Mehta5423c962013-03-04 15:45:46 +0530209 "execute:(not webnotes.conn.exists('UOM', 'Hour')) and webnotes.doc({'uom_name': 'Hour', 'doctype': 'UOM', 'name': 'Hour'}).insert()",
Nabin Haitdae20d82013-03-05 15:52:07 +0530210 "patches.march_2013.p01_c_form",
Nabin Haita0accd92013-03-05 15:58:04 +0530211 "execute:webnotes.conn.sql('update tabDocPerm set `submit`=1, `cancel`=1, `amend`=1 where parent=\"Time Log\"')",
Nabin Haitdae20d82013-03-05 15:52:07 +0530212 "execute:webnotes.delete_doc('DocType', 'Attendance Control Panel')",
Nabin Hait87b9cd52013-03-06 13:15:08 +0530213 "patches.march_2013.p02_get_global_default",
Rushabh Mehtab8ec3e72013-03-11 14:29:09 +0530214 "patches.march_2013.p03_rename_blog_to_blog_post",
Nabin Hait4fad8742013-03-12 18:27:25 +0530215 "execute:webnotes.reload_doc('hr', 'search_criteria', 'monthly_attendance_details')",
Anand Doshi71bed312013-03-13 12:57:04 +0530216 "patches.march_2013.p04_pos_update_stock_check",
Anand Doshi1cf73912013-03-15 13:42:31 +0530217 "patches.march_2013.p05_payment_reconciliation",
Anand Doshi080f9092013-03-18 17:57:59 +0530218 "patches.march_2013.p06_remove_sales_purchase_return_tool",
Rushabh Mehta06d186b2013-03-25 17:03:52 +0530219 "execute:webnotes.bean('Global Defaults').save()",
220 "patches.march_2013.p07_update_project_in_stock_ledger",
Anand Doshie3507312013-03-27 17:35:23 +0530221 "execute:webnotes.reload_doc('stock', 'doctype', 'item') #2013-03-25",
222 "execute:webnotes.reload_doc('setup', 'doctype', 'item_group') #2013-03-25",
223 "execute:webnotes.reload_doc('website', 'doctype', 'blog_post') #2013-03-25",
224 "execute:webnotes.reload_doc('website', 'doctype', 'web_page') #2013-03-25",
Rushabh Mehta06d186b2013-03-25 17:03:52 +0530225 "execute:webnotes.bean('Style Settings').save() #2013-03-25",
Anand Doshi9f910532013-03-26 12:25:11 +0530226 "execute:webnotes.conn.set_value('Email Settings', None, 'send_print_in_body_and_attachment', 1)",
227 "patches.march_2013.p09_unset_user_type_partner",
Anand Doshie3507312013-03-27 17:35:23 +0530228 "patches.march_2013.p10_set_fiscal_year_for_stock",
Nabin Haite2fe8de2013-03-28 15:30:41 +0530229 "patches.march_2013.p10_update_against_expense_account",
Rushabh Mehta2fe802c2013-03-28 16:26:11 +0530230 "patches.march_2013.p11_update_attach_files",
Nabin Haitacecb942013-03-29 10:48:41 +0530231 "patches.march_2013.p12_set_item_tax_rate_in_json",
Nabin Hait787c02e2013-03-29 16:42:33 +0530232 "patches.march_2013.p07_update_valuation_rate",
233 "patches.march_2013.p08_create_aii_accounts",
Nabin Hait2f20a7a2013-04-01 17:23:43 +0530234 "patches.april_2013.p01_update_serial_no_valuation_rate",
Nabin Hait996e4692013-04-02 14:26:26 +0530235 "patches.april_2013.p02_add_country_and_currency",
Nabin Hait1e3fc882013-04-02 18:13:20 +0530236 "patches.april_2013.p03_fixes_for_lead_in_quotation",
237 'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Classic") # 2013-04-02',
238 'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Modern") # 2013-04-02',
239 'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Spartan") # 2013-04-02',
Rushabh Mehta27c40792013-04-03 15:21:44 +0530240 "patches.april_2013.p04_reverse_modules_list",
Nabin Hait832320d2013-04-09 11:43:03 +0530241 "execute:webnotes.delete_doc('Search Criteria', 'time_log_summary')",
Nabin Haitd35293d2013-04-09 11:39:16 +0530242 "patches.april_2013.p04_update_role_in_pages",
Rushabh Mehta0c161122013-04-10 13:54:13 +0530243 "patches.april_2013.p05_update_file_data",
244 "patches.april_2013.p06_update_file_size",
Anand Doshie33f8272013-04-10 19:33:57 +0530245 "patches.april_2013.p05_fixes_in_reverse_modules",
Anand Doshi4d705592013-04-18 16:21:42 +0530246 "execute:webnotes.delete_doc('DocType Mapper', 'Delivery Note-Packing Slip')",
Anand Doshic54bbc02013-04-19 16:41:57 +0530247 "execute:webnotes.reload_doc('Stock', 'DocType', 'Delivery Note Item')",
Anand Doshi4d705592013-04-18 16:21:42 +0530248 "patches.april_2013.p06_default_cost_center",
Rushabh Mehtacdc9e2c2013-04-25 11:06:17 +0530249 "execute:webnotes.reset_perms('File Data')",
Anand Doshieda17eb2013-04-29 15:21:30 +0530250 "patches.april_2013.p07_update_file_data_2",
Nabin Hait345c8fb2013-04-29 14:35:11 +0530251 "patches.april_2013.rebuild_sales_browser",
Rushabh Mehta78d4b492012-11-23 17:53:43 +0530252]