From a4bb7c4e95c853fb0319a183c541e049242befae Mon Sep 17 00:00:00 2001 From: khushi Date: Thu, 19 Jun 2025 17:13:01 +0530 Subject: [PATCH] refactor: remove autoname --- erpnext/crm/doctype/contract/contract.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/erpnext/crm/doctype/contract/contract.py b/erpnext/crm/doctype/contract/contract.py index ea4398d7bfa..49988e546df 100644 --- a/erpnext/crm/doctype/contract/contract.py +++ b/erpnext/crm/doctype/contract/contract.py @@ -47,14 +47,6 @@ class Contract(Document): status: DF.Literal["Unsigned", "Active", "Inactive"] # end: auto-generated types - def autoname(self): - name = self.party_name - - if self.contract_template: - name += f" - {self.contract_template} Agreement" - - self.name = append_number_if_name_exists("Contract", name) - def validate(self): self.set_missing_values() self.validate_dates()