This website works better with JavaScript.
首頁
探索
說明
登入
anoopmb
/
frappe
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
fix: allow only system manager
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
version-14
Mohammad Hasnain Mohsin Rajan
4 年之前
committed by
GitHub
父節點
2e1c4650ba
當前提交
969e2b6db9
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID:
4AEE18F83AFDEB23
共有
1 個文件被更改
,包括
1 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
frappe/core/doctype/document_naming_rule/document_naming_rule.py
+ 1
- 0
frappe/core/doctype/document_naming_rule/document_naming_rule.py
查看文件
@@ -33,5 +33,6 @@ class DocumentNamingRule(Document):
@frappe.whitelist()
def update_current(name, new_counter):
frappe.only_for('System Manager')
frappe.db.set_value('Document Naming Rule', name, 'counter', new_counter)
frappe.db.commit()
Write
Preview
Loading…
取消
儲存