[IMP]: Improvement url path and usability

bzr revid: ksa@tinyerp.co.in-20101005084643-5j2exbk080e34jh9
This commit is contained in:
ksa (Open ERP) 2010-10-05 14:16:43 +05:30
parent 307f7e8f5a
commit 9d2980ec30
4 changed files with 3 additions and 7 deletions

View File

@ -195,11 +195,9 @@ var openPartnerHandler = {
if(strlSearchResult=="partner_id"){
partner_id = strlSearchResultValue;
weburl = getWebServerURL();
webport = getwebPort();
var urlport = weburl+':'+webport
if (parseInt(partner_id) > 0){
var t = urlport + "/openerp/form/view?model=res.partner&id="+partner_id;
var t = weburl + "/openerp/form/view?model=res.partner&id="+partner_id;
alert(t + ":" + " " + "\n\n" + "You can copy this URL into your WebBrowser if URL is not redirected automatic.");
window.open(t);
@ -304,10 +302,8 @@ var listDocumentHandler = {
res_id = res.QueryElementAt(1, Components.interfaces.nsISupportsPRInt32);
model = res.QueryElementAt(0, Components.interfaces.nsISupportsCString);
weburl = getWebServerURL();
webport = getwebPort();
var urlport = weburl+':'+webport;
var t = urlport + "/openerp/form/view?model=" + model +"&id=" + res_id;
var t = weburl + "/openerp/form/view?model=" + model +"&id=" + res_id;
alert(t + ":" + " " + "\n\n" + "You can copy this URL into your WebBrowser if URL is not redirected automatic.");
window.open(t);

View File

@ -5,7 +5,7 @@
<!ENTITY ok.label "OK">
<!ENTITY connection.label "Connect">
<!ENTITY setconnection.label "Change">
<!ENTITY openconnection.label "Connect">
<!ENTITY openconnection.label "Open">
<!ENTITY txturl.label "Server: ">
<!ENTITY txtweburl.label "Server: ">
<!ENTITY txtwebport.label "Port: ">