Merge pull request #51433 from mihir-kandoi/naming-rule-based-on-posting-date

This commit is contained in:
Mihir Kandoi
2026-01-30 17:10:50 +05:30
committed by GitHub
5 changed files with 56 additions and 6 deletions

View File

@@ -13,6 +13,7 @@
"hide_currency_symbol",
"disable_rounded_total",
"disable_in_words",
"use_posting_datetime_for_naming_documents",
"demo_company"
],
"fields": [
@@ -80,6 +81,13 @@
"label": "Demo Company",
"options": "Company",
"read_only": 1
},
{
"default": "0",
"description": "When checked, the system will use the posting datetime of the document for naming the document instead of the creation datetime of the document.",
"fieldname": "use_posting_datetime_for_naming_documents",
"fieldtype": "Check",
"label": "Use Posting Datetime for Naming Documents"
}
],
"grid_page_length": 50,
@@ -89,7 +97,7 @@
"in_create": 1,
"issingle": 1,
"links": [],
"modified": "2026-01-02 18:13:13.421866",
"modified": "2026-01-12 09:45:59.819161",
"modified_by": "Administrator",
"module": "Setup",
"name": "Global Defaults",

View File

@@ -39,6 +39,7 @@ class GlobalDefaults(Document):
disable_in_words: DF.Check
disable_rounded_total: DF.Check
hide_currency_symbol: DF.Literal["", "No", "Yes"]
use_posting_datetime_for_naming_documents: DF.Check
# end: auto-generated types
def on_update(self):