mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
* chore: patches were breaking during migration
* fix: rewrote the query in query builder
* chore: removed patch from patches.txt
(cherry picked from commit 25c875e447)
Co-authored-by: Shadrak Gurupnor <30501401+shadrak98@users.noreply.github.com>
This commit is contained in:
@@ -178,7 +178,6 @@ erpnext.patches.v12_0.set_updated_purpose_in_pick_list
|
|||||||
erpnext.patches.v12_0.set_default_payroll_based_on
|
erpnext.patches.v12_0.set_default_payroll_based_on
|
||||||
erpnext.patches.v12_0.repost_stock_ledger_entries_for_target_warehouse
|
erpnext.patches.v12_0.repost_stock_ledger_entries_for_target_warehouse
|
||||||
erpnext.patches.v12_0.update_end_date_and_status_in_email_campaign
|
erpnext.patches.v12_0.update_end_date_and_status_in_email_campaign
|
||||||
erpnext.patches.v13_0.validate_options_for_data_field
|
|
||||||
erpnext.patches.v13_0.move_tax_slabs_from_payroll_period_to_income_tax_slab #123
|
erpnext.patches.v13_0.move_tax_slabs_from_payroll_period_to_income_tax_slab #123
|
||||||
erpnext.patches.v12_0.fix_quotation_expired_status
|
erpnext.patches.v12_0.fix_quotation_expired_status
|
||||||
erpnext.patches.v12_0.update_appointment_reminder_scheduler_entry
|
erpnext.patches.v12_0.update_appointment_reminder_scheduler_entry
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
# Copyright (c) 2021, Frappe and Contributors
|
|
||||||
# License: GNU General Public License v3. See license.txt
|
|
||||||
|
|
||||||
|
|
||||||
import frappe
|
|
||||||
from frappe.model import data_field_options
|
|
||||||
|
|
||||||
|
|
||||||
def execute():
|
|
||||||
|
|
||||||
for field in frappe.get_all('Custom Field',
|
|
||||||
fields = ['name'],
|
|
||||||
filters = {
|
|
||||||
'fieldtype': 'Data',
|
|
||||||
'options': ['!=', None]
|
|
||||||
}):
|
|
||||||
|
|
||||||
if field not in data_field_options:
|
|
||||||
frappe.db.sql("""
|
|
||||||
UPDATE
|
|
||||||
`tabCustom Field`
|
|
||||||
SET
|
|
||||||
options=NULL
|
|
||||||
WHERE
|
|
||||||
name=%s
|
|
||||||
""", (field))
|
|
||||||
Reference in New Issue
Block a user