改善 Odoo 診斷與設定管理 #8
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
本次提交旨在回應使用者「檢查系統問題」的需求,並提供一個更健全、更安全的診斷工具。
主要變更:
config.json:引入了結構化的設定檔,將 SSH 和 Odoo 的設定分開,提高了可讀性和可維護性。test_login.py:將其從一個硬編碼的腳本,重構為一個由設定檔驅動的診斷工具。它現在能夠提供清晰的錯誤訊息,並引導使用者建立設定檔。manage_server.py:使其與新的設定檔結構相容。requests模組加入requirements.txt。安全修正:
config.json檔案。.gitignore:確認config.json已被.gitignore忽略,以防止未來的意外提交。PR created automatically by Jules for task 9405598383330204869 started by @o970106-dev