Tweaks for uninstalling.
This commit is contained in:
parent
541e6c5ed7
commit
f97d48aaed
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ import frappe
|
||||||
from .utils import create_module
|
from .utils import create_module
|
||||||
import holidays
|
import holidays
|
||||||
from datetime import date, timedelta
|
from datetime import date, timedelta
|
||||||
import custom_fields
|
from . import custom_fields
|
||||||
|
|
||||||
def after_install():
|
def after_install():
|
||||||
create_module()
|
create_module()
|
||||||
|
|
@ -94,7 +94,7 @@ def remove_custom_fields(custom_fields):
|
||||||
if frappe.db.exists("Custom Field", name):
|
if frappe.db.exists("Custom Field", name):
|
||||||
frappe.delete_doc("Custom Field", name)
|
frappe.delete_doc("Custom Field", name)
|
||||||
frappe.db.commit()
|
frappe.db.commit()
|
||||||
print("Deleted {name}")
|
print(f"Deleted {name}")
|
||||||
print("Deleted custom fields from database")
|
print("Deleted custom fields from database")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue