Tweaks for uninstalling.
This commit is contained in:
parent
541e6c5ed7
commit
f97d48aaed
@ -6,7 +6,7 @@ import frappe
|
||||
from .utils import create_module
|
||||
import holidays
|
||||
from datetime import date, timedelta
|
||||
import custom_fields
|
||||
from . import custom_fields
|
||||
|
||||
def after_install():
|
||||
create_module()
|
||||
@ -94,7 +94,7 @@ def remove_custom_fields(custom_fields):
|
||||
if frappe.db.exists("Custom Field", name):
|
||||
frappe.delete_doc("Custom Field", name)
|
||||
frappe.db.commit()
|
||||
print("Deleted {name}")
|
||||
print(f"Deleted {name}")
|
||||
print("Deleted custom fields from database")
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user