chore!: remove activity log feeds (#33294)

- This contains little to no information and practically no one uses this.
- Also causes a lot of problem by adding way too many feeds in activity
  log to the point where activity page doesn't even load.
This commit is contained in:
Ankush Menat
2022-12-12 15:14:30 +05:30
committed by GitHub
parent 593626f502
commit 915e0347b0
13 changed files with 0 additions and 40 deletions

View File

@@ -18,9 +18,6 @@ from frappe.utils.user import is_website_user
class Issue(Document):
def get_feed(self):
return "{0}: {1}".format(_(self.status), self.subject)
def validate(self):
if self.is_new() and self.via_customer_portal:
self.flags.create_communication = True

View File

@@ -10,9 +10,6 @@ from erpnext.utilities.transaction_base import TransactionBase
class WarrantyClaim(TransactionBase):
def get_feed(self):
return _("{0}: From {1}").format(self.status, self.customer_name)
def validate(self):
if session["user"] != "Guest" and not self.customer:
frappe.throw(_("Customer is required"))