[IMP]: Directly open web url path for geting url
bzr revid: ksa@tinyerp.co.in-20101006121502-bhe87ookq5z13f31
This commit is contained in:
parent
74314d09be
commit
fa0181fc83
Binary file not shown.
Binary file not shown.
|
@ -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) {
|
||||
|
|
|
@ -57,5 +57,5 @@
|
|||
label= "Open Document"
|
||||
oncommand="open_document();" />
|
||||
</toolbarpalette>
|
||||
|
||||
|
||||
</overlay>
|
||||
|
|
|
@ -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");
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue