fix: location values now return city name only (saopaulo instead of api.saopaulo.odoo4projects.com)

This commit is contained in:
ODOO4projects Web Developer committed 2026-10-05 20:37:28 +00:00
1 parent 4d9becd159
commit eb142d1aa6
1 file changed
+3 -1
+3 -1
View File
@@ -507,7 +507,9 @@ var si = 0,
if (el) { if (el) {
SERVERS.forEach(function(s) { SERVERS.forEach(function(s) {
var opt = document.createElement('option'); var opt = document.createElement('option');
opt.value = s.host; // Extract city from host: api.saopaulo.odoo4projects.com -> saopaulo
var cityVal = s.host.replace('api.', '').replace('.odoo4projects.com', '');
opt.value = cityVal;
opt.textContent = s.city; opt.textContent = s.city;
el.appendChild(opt); el.appendChild(opt);
}); });