Remove all external odoo.com URLs — no phone home

Backend (Go):
- handleSessionAccount: returns /odoo/action-100 (local settings)
- support_url: empty string

Frontend (JS):
- user_menu_items.js: account link navigates locally, no fallback
- upgrade_dialog.js: no external upgrade URL
- documentation_link.js: returns empty string

All 5 identified external URL references eliminated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Marc
2026-04-03 13:19:29 +02:00
parent 6fd9cdea1b
commit c33393849b
5 changed files with 8 additions and 13 deletions

View File

@@ -26,7 +26,7 @@ export class DocumentationLink extends Component {
"-" "-"
) )
: "master"; : "master";
return "https://www.odoo.com/documentation/" + serverVersion + this.props.path; return ""; // No external documentation link
} }
} }

View File

@@ -16,10 +16,8 @@ export class UpgradeDialog extends Component {
const usersCount = await this.orm.call("res.users", "search_count", [ const usersCount = await this.orm.call("res.users", "search_count", [
[["share", "=", false]], [["share", "=", false]],
]); ]);
window.open( // No external upgrade URL — local installation
"https://www.odoo.com/odoo-enterprise/upgrade?num_users=" + usersCount, console.log("Upgrade not available in local installation");
"_blank"
);
this.props.close(); this.props.close();
} }
} }

View File

@@ -77,11 +77,9 @@ export function odooAccountItem(env) {
callback: () => { callback: () => {
rpc("/web/session/account") rpc("/web/session/account")
.then((url) => { .then((url) => {
browser.open(url, "_blank"); if (url) window.location = url;
}) })
.catch(() => { .catch(() => {});
browser.open("https://accounts.odoo.com/account", "_blank");
});
}, },
sequence: 60, sequence: 60,
}; };

View File

@@ -826,10 +826,9 @@ func (s *Server) handleVersionInfo(w http.ResponseWriter, r *http.Request) {
}, nil) }, nil)
} }
// handleSessionAccount returns the Odoo.com account URL. // handleSessionAccount returns a local URL instead of odoo.com.
// Mirrors: odoo/addons/web/controllers/home.py session_account()
func (s *Server) handleSessionAccount(w http.ResponseWriter, r *http.Request) { func (s *Server) handleSessionAccount(w http.ResponseWriter, r *http.Request) {
s.writeJSONRPC(w, nil, "https://accounts.odoo.com/account", nil) s.writeJSONRPC(w, nil, "/odoo/action-100", nil)
} }
// handleLogout destroys the session and redirects to login. // handleLogout destroys the session and redirects to login.

View File

@@ -211,7 +211,7 @@ func (s *Server) buildSessionInfo(sess *Session) map[string]interface{} {
"max_file_upload_size": 134217728, "max_file_upload_size": 134217728,
"home_action_id": 1, "home_action_id": 1,
"current_menu": 1, "current_menu": 1,
"support_url": "https://www.odoo.com/help", "support_url": "",
"notification_type": "email", "notification_type": "email",
"display_switch_company_menu": false, "display_switch_company_menu": false,
"test_mode": false, "test_mode": false,