diff --git a/addons/thunderbird/partner/partner.py b/addons/thunderbird/partner/partner.py index 55e1f112157..825c4f6fc8c 100644 --- a/addons/thunderbird/partner/partner.py +++ b/addons/thunderbird/partner/partner.py @@ -313,13 +313,13 @@ class thunderbird_partner(osv.osv_memory): def list_allcountry(self,cr,user,vals): country_list = [] - cr.execute("SELECT id, name from res_country") + cr.execute("SELECT id, name from res_country order by name") country_list = cr.fetchall() return country_list def list_allstate(self,cr,user,vals): - cr.execute("select id, name from res_country_state where country_id = %s",(vals,) ) + cr.execute("select id, name from res_country_state where country_id = %s order by name",(vals,) ) state_country_list = cr.fetchall() return state_country_list diff --git a/addons/thunderbird/plugin/openerp_plugin.xpi b/addons/thunderbird/plugin/openerp_plugin.xpi index 9ad03a48056..abcc254c869 100644 Binary files a/addons/thunderbird/plugin/openerp_plugin.xpi and b/addons/thunderbird/plugin/openerp_plugin.xpi differ diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar index c721b8242bf..5666b96546e 100644 Binary files a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar and b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar differ diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js index 242ec32f8cb..7b722c75034 100755 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js @@ -100,8 +100,6 @@ var myPrefObserver = }, - - createContactAddress: function() { document.getElementById("txtselectpartner").value = getPartnerName(); diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js index a990a45e10e..23038f29860 100755 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js @@ -793,7 +793,7 @@ var listAllStateHandler = { var arrIdList = result.QueryInterface(Components.interfaces.nsISupportsArray); // Set the number of results var count = arrIdList.Count(); - + // Loop through the results, adding items to the list for (i = 0; i < count; i++) { var strlResult = arrIdList.QueryElementAt(i, Components.interfaces.nsISupportsArray); @@ -802,16 +802,20 @@ var listAllStateHandler = { arrDataPair[0] = strlResult.QueryElementAt(0, Components.interfaces.nsISupportsPRInt32); arrDataPair[1] = strlResult.QueryElementAt(1, Components.interfaces.nsISupportsCString); arrPartnerList1[i] = arrDataPair; + + } if (!context) { const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; + var popup = document.getElementById("state"); // a element for (i=0;i