mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
Accounting Period autoname
This commit is contained in:
@@ -7,4 +7,9 @@ import frappe
|
|||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
|
||||||
class AccountingPeriod(Document):
|
class AccountingPeriod(Document):
|
||||||
pass
|
def validate(self):
|
||||||
|
self.validate_overlap()
|
||||||
|
|
||||||
|
def autoname(self):
|
||||||
|
company_abbr = frappe.db.get_value("Company", self.company, "abbr")
|
||||||
|
self.name = " - ".join([self.period_name, company_abbr])
|
||||||
|
|||||||
Reference in New Issue
Block a user