Переглянути джерело

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
Не вдалося знайти GPG ключ що відповідає даному підпису Ідентифікатор GPG ключа: 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)



Завантаження…
Відмінити
Зберегти