mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
refactor: use naming series configuration for Sales Partner ID
Replaced hardcoded ID assignment with Naming Series configuration so that Sales Partner IDs can be managed via Setup > Naming Series. Fixes #49623
This commit is contained in:
committed by
ruthra kumar
parent
9b09dd063d
commit
959c311795
@@ -44,7 +44,7 @@ class SalesPartner(WebsiteGenerator):
|
|||||||
load_address_and_contact(self)
|
load_address_and_contact(self)
|
||||||
|
|
||||||
def autoname(self):
|
def autoname(self):
|
||||||
self.name = self.partner_name
|
pass
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
if not self.route:
|
if not self.route:
|
||||||
|
|||||||
Reference in New Issue
Block a user