[IMP]: improvement for get state list
authorksa (Open ERP) <ksa@tinyerp.co.in>
Thu, 7 Oct 2010 05:56:50 +0000 (11:26 +0530)
committerksa (Open ERP) <ksa@tinyerp.co.in>
Thu, 7 Oct 2010 05:56:50 +0000 (11:26 +0530)
bzr revid: ksa@tinyerp.co.in-20101007055650-z74ayvfuxmx77uy6

addons/thunderbird/plugin/openerp_plugin.xpi
addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar
addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/create.xul
addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js
addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/overlay.js
addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js

index b094c77..4215a6d 100644 (file)
Binary files a/addons/thunderbird/plugin/openerp_plugin.xpi and b/addons/thunderbird/plugin/openerp_plugin.xpi differ
index fcc567c..fc279a4 100644 (file)
Binary files a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar and b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar differ
index 41109b1..0aeb4a9 100644 (file)
@@ -3,7 +3,7 @@
 <!DOCTYPE window SYSTEM "chrome://openerp_plugin/locale/create.dtd">
 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/1999/xhtml"
-       title="&title.label;" onload="myPrefObserver.createContact()" height="460" width="860">
+       title="&title.label;" onload="myPrefObserver.createContact();" height="460" width="860">
 <script type="text/javascript" src="chrome://openerp_plugin/content/tiny_xmlrpc.js"></script>
 <script type="text/javascript" src="chrome://openerp_plugin/content/config.js"></script>
 <script type="text/javascript" src="chrome://openerp_plugin/content/loaddata.js"></script>
@@ -57,7 +57,7 @@
  
     <hbox>
          <label  align="right" id="countryname"  value="&country.value;" width="97" />
-         <menulist id="country" width="190">
+         <menulist id="country" width="190" oncommand= "getAllState();" >
            <menupopup>
             <menuitem label="" value=""/>
            </menupopup>
index 961f855..892f25a 100755 (executable)
@@ -52,6 +52,7 @@ var myPrefObserver =
         document.getElementById("state").value = getAllState();
         setPartnerId(0);
        },
+    
 
        //sets the value of email information in preferences and adds observer for the window
        register: function()
index f2fbc1f..f9cbb82 100755 (executable)
@@ -303,7 +303,7 @@ var listDocumentHandler = {
         weburl = getWebServerURL();
         
         var t = weburl + "/openerp/form/view?model=" + model +"&id=" + res_id;
-        window.open(t, "", "chrome","resizable=yes,scrollbars=yes,status=yes");
+        window.open(t, "", "chrome","resizable=yes,scrollbars=yes,status=yes,");
          \r
        },\r
        onFault: function (client, ctxt, fault) {\r
index 4055268..34d42c7 100755 (executable)
@@ -773,10 +773,9 @@ var listAllCountryHandler = {
                        var popup = document.getElementById("country"); // a <menupopup> element
                        for (i=0;i<arrPartnerList.length;i++){
                                popup.menupopup.appendChild(createMenuItem_partner(arrPartnerList[i][1],arrPartnerList[i][0]));
-
                        }
                }
-       
+              
        },
        onFault: function (client, ctxt, fault) {
                
@@ -874,6 +873,7 @@ function getAllCountry(){
 }
 
 function getAllState(){
+   // alert("hhhhhh");
        var branchobj = getPref();
        setServerService('xmlrpc/object');
        var xmlRpcClient = getXmlRpc();
@@ -1831,7 +1831,6 @@ function testConnection(){
 function testConnection_web(){
        var branchobj = getPref();
     weburl = getWebServerURL();
-    alert(weburl);
     window.open(weburl, "", "chrome","resizable=yes,scrollbars=yes,status=yes");
     
 }