fix: improve patches
This commit is contained in:
parent
7f390fb755
commit
85c4c342d8
@ -301,7 +301,7 @@ erpnext.patches.v13_0.delete_bank_reconciliation_detail
|
||||
erpnext.patches.v13_0.enable_provisional_accounting
|
||||
erpnext.patches.v13_0.non_profit_deprecation_warning
|
||||
erpnext.patches.v13_0.enable_ksa_vat_docs #1
|
||||
erpnext.patches.v13_0.remove_india_deprecation_warning
|
||||
erpnext.patches.v13_0.show_india_localisation_deprecation_warning
|
||||
|
||||
[post_model_sync]
|
||||
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')
|
||||
@ -345,4 +345,4 @@ erpnext.patches.v13_0.set_payroll_entry_status
|
||||
erpnext.patches.v13_0.job_card_status_on_hold
|
||||
erpnext.patches.v14_0.migrate_gl_to_payment_ledger
|
||||
erpnext.patches.v14_0.crm_ux_cleanup
|
||||
erpnext.patches.v14_0.delete_regional_india_doctypes
|
||||
erpnext.patches.v14_0.remove_india_localisation
|
||||
|
@ -1,10 +0,0 @@
|
||||
import click
|
||||
|
||||
|
||||
def execute():
|
||||
|
||||
click.secho(
|
||||
"Regional India is moved to a separate app and will be removed from ERPNext in version-14.\n"
|
||||
"Please install the app to continue using the module after upgrading to version-14: https://github.com/resilient-tech/india-compliance",
|
||||
fg="yellow",
|
||||
)
|
@ -0,0 +1,15 @@
|
||||
import click
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
if not frappe.db.exists("Company", {"country": "India"}):
|
||||
return
|
||||
|
||||
click.secho(
|
||||
"India-specific regional features have been moved to a separate app"
|
||||
" and will be removed from ERPNext in Version 14."
|
||||
" Please install India Compliance after upgrading to Version 14:\n"
|
||||
"https://github.com/resilient-tech/india-compliance",
|
||||
fg="yellow",
|
||||
)
|
@ -34,10 +34,20 @@ def execute():
|
||||
}
|
||||
|
||||
for doctype, names in to_delete.items():
|
||||
frappe.delete_doc(doctype, names, ignore_missing=True, force=True)
|
||||
frappe.delete_doc(
|
||||
doctype,
|
||||
names,
|
||||
force=True,
|
||||
ignore_permissions=True,
|
||||
ignore_missing=True,
|
||||
)
|
||||
|
||||
if not frappe.db.exists("Company", {"country": "India"}):
|
||||
return
|
||||
|
||||
click.secho(
|
||||
"Regional India is moved to a separate app and is removed from ERPNext.\n"
|
||||
"Please install the app to continue using the module: https://github.com/resilient-tech/india-compliance",
|
||||
"India-specific regional features have been moved to a separate app."
|
||||
" Please install India Compliance to continue using these features:"
|
||||
" https://github.com/resilient-tech/india-compliance",
|
||||
fg="yellow",
|
||||
)
|
Loading…
Reference in New Issue
Block a user