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";
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", [
[["share", "=", false]],
]);
window.open(
"https://www.odoo.com/odoo-enterprise/upgrade?num_users=" + usersCount,
"_blank"
);
// No external upgrade URL — local installation
console.log("Upgrade not available in local installation");
this.props.close();
}
}

View File

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