Преглед на файлове

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 години
committed by GitHub
родител
ревизия
78fbedb5c7
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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 Целия файл

@@ -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)



Зареждане…
Отказ
Запис