docs: fix make_autoname example (#18354)

This commit is contained in:
Anand Baburajan 2022-10-10 21:04:35 +05:30 committed by GitHub
parent a62861ec9f
commit feb198a019
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,8 +273,8 @@ def make_autoname(key="", doctype="", doc=""):
*Example:*
* DE/./.YY./.MM./.##### will create a series like
DE/09/01/0001 where 09 is the year, 01 is the month and 0001 is the series
* DE./.YY./.MM./.##### will create a series like
DE/09/01/00001 where 09 is the year, 01 is the month and 00001 is the series
"""
if key == "hash":
return frappe.generate_hash(doctype, 10)