[IMP]: Directly open web url path for geting url

bzr revid: ksa@tinyerp.co.in-20101006121502-bhe87ookq5z13f31
This commit is contained in:
ksa (Open ERP) 2010-10-06 17:45:02 +05:30
parent 74314d09be
commit fa0181fc83
5 changed files with 6 additions and 10 deletions

View File

@ -198,9 +198,7 @@ var openPartnerHandler = {
if (parseInt(partner_id) > 0){
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);
window.open(t, "", "chrome","resizable=yes,scrollbars=yes,status=yes");
}
else{
@ -295,6 +293,7 @@ function open_partner()
searchPartner(senderemail);
}
var listDocumentHandler = {
onResult: function(client, context, result) {
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess');
@ -304,8 +303,7 @@ var listDocumentHandler = {
weburl = getWebServerURL();
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);
window.open(t, "", "chrome","resizable=yes,scrollbars=yes,status=yes");
},
onFault: function (client, ctxt, fault) {

View File

@ -57,5 +57,5 @@
label= "Open Document"
oncommand="open_document();" />
</toolbarpalette>
</overlay>

View File

@ -1831,10 +1831,8 @@ function testConnection(){
function testConnection_web(){
var branchobj = getPref();
weburl = getWebServerURL();
var urlport = weburl
alert(urlport + " " + "\n\n" + "You can copy this URL into your WebBrowser if URL is not redirected automatic.");
window.close();
window.open(urlport);
alert(weburl);
window.open(weburl, "", "chrome","resizable=yes,scrollbars=yes,status=yes");
}