mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-18 10:57:56 +00:00
activity type fixs
This commit is contained in:
@@ -7,4 +7,10 @@ import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
class ActivityType(Document):
|
||||
pass
|
||||
|
||||
def on_trash(self):
|
||||
self.validate_manufacturing_type()
|
||||
|
||||
def validate_manufacturing_type(self):
|
||||
if self.activity_type == 'Manufacturing':
|
||||
frappe.throw(_("Activity Type 'Manufacturing' cannot be deleted."))
|
||||
Reference in New Issue
Block a user