taxes_az/taxes_az/item_group.py

6 lines
167 B
Python

import frappe
from frappe import _
def validate_item_group_deletion(doc, method):
if doc.is_standard:
frappe.throw(_("Cannot delete standard Item Group"))