[erpnext] 添加类似设置的单一 DocType,非 List

· Python

首先,创建一个 Is Single 类型的 DocType

然后,可能会遇到

则可参考找不到 DocType 或 Page 的问题

如果顺利,则可通过右上角的“Go to xxx” 进入这个页面,大功告成

通过 python 的方式获取这个设置:

zcana_settings = frappe.get_doc("Zcana Config")
domain = zcana_settings.paperless_host or "https://localhost"
auth_token = zcana_settings.paperless_token or ""

发表评论