Browse Source

fix: erase default before adding new series-es (backport #18080) (#18081)

* fix: erase default before adding new series-es

(cherry picked from commit f5a45a7e78)

* chore: conflict

Co-authored-by: Ankush Menat <ankush@frappe.io>
version-14
mergify[bot] 2 years ago
committed by GitHub
parent
commit
78fbedb5c7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      frappe/core/doctype/document_naming_settings/document_naming_settings.py

+ 2
- 0
frappe/core/doctype/document_naming_settings/document_naming_settings.py View File

@@ -113,6 +113,8 @@ class DocumentNamingSettings(Document):

option_string = "\n".join(options)

# Erase default first, it might not be in new options.
self.update_naming_series_property_setter(doctype, "default", "")
self.update_naming_series_property_setter(doctype, "options", option_string)
self.update_naming_series_property_setter(doctype, "default", default)



Loading…
Cancel
Save