chore: formatting fix
(cherry picked from commit d6ff40cc6aceae1dbf1f50dc033604a476914c7d)
This commit is contained in:
parent
a28d113384
commit
9a5c0c2f18
@ -1,12 +1,13 @@
|
|||||||
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
|
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
|
||||||
# MIT License. See license.txt
|
# MIT License. See license.txt
|
||||||
from __future__ import unicode_literals
|
|
||||||
import click
|
import click
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
def before_uninstall():
|
def before_uninstall():
|
||||||
delete_email_template_custom_fields()
|
delete_email_template_custom_fields()
|
||||||
|
|
||||||
|
|
||||||
def delete_email_template_custom_fields():
|
def delete_email_template_custom_fields():
|
||||||
if frappe.get_meta("Email Template").has_field("enabled"):
|
if frappe.get_meta("Email Template").has_field("enabled"):
|
||||||
click.secho("* Uninstalling Custom Fields from Email Template")
|
click.secho("* Uninstalling Custom Fields from Email Template")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user