diff options
| author | ksa (Open ERP) <ksa@tinyerp.co.in> | 2010-10-07 17:00:18 +0530 |
|---|---|---|
| committer | ksa (Open ERP) <ksa@tinyerp.co.in> | 2010-10-07 17:00:18 +0530 |
| commit | 4a74b64cd0eeb3acdbbd288c17a8ecc01671f39e (patch) | |
| tree | 7f40e1bd818412623705601b21ca2dc76657d446 | |
| parent | ab2137c6338a948677fb5ddac3e132678c859268 (diff) | |
[IMP]: fetch state related with country
bzr revid: ksa@tinyerp.co.in-20101007113018-95vcm87jaffyugps
| -rw-r--r-- | addons/thunderbird/partner/partner.py | 9 | ||||
| -rw-r--r-- | addons/thunderbird/plugin/openerp_plugin.xpi | bin | 155003 -> 154976 bytes | |||
| -rw-r--r-- | addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar | bin | 72989 -> 72976 bytes | |||
| -rwxr-xr-x | addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js | 3 |
4 files changed, 7 insertions, 5 deletions
diff --git a/addons/thunderbird/partner/partner.py b/addons/thunderbird/partner/partner.py index 3ce4c8ee53e..dcbb06c733e 100644 --- a/addons/thunderbird/partner/partner.py +++ b/addons/thunderbird/partner/partner.py @@ -138,6 +138,7 @@ class thunderbird_partner(osv.osv_memory): _description="Thunderbid mails"
def create_contact(self,cr,user,vals):
+ print "vvvvvvvvvvvvvvvvv",vals
dictcreate = dict(vals)
# Set False value if 'undefined'. Thunerbird set 'undefined' if user did not set any value.
for key in dictcreate:
@@ -317,10 +318,12 @@ class thunderbird_partner(osv.osv_memory): country_list = cr.fetchall()
return country_list
+
def list_allstate(self,cr,user,vals):
- cr.execute("SELECT id, name from res_country_state")
- state_country_list = cr.fetchall()
- return state_country_list
+ cr.execute("select id, name from res_country_state where country_id = %s",(vals,) )
+ state_country_list = cr.fetchall()
+ return state_country_list
+
def search_document_attachment(self,cr,user,vals):
model_obj = self.pool.get('ir.model')
diff --git a/addons/thunderbird/plugin/openerp_plugin.xpi b/addons/thunderbird/plugin/openerp_plugin.xpi Binary files differindex d12aeac69e5..09583ae30d2 100644 --- a/addons/thunderbird/plugin/openerp_plugin.xpi +++ b/addons/thunderbird/plugin/openerp_plugin.xpi diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar Binary files differindex 51681af30e5..9595b6c3a98 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar 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 edec181da0d..a990a45e10e 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 @@ -873,7 +873,6 @@ function getAllCountry(){ } function getAllState(){ - // alert("hhhhhh"); var branchobj = getPref(); setServerService('xmlrpc/object'); var xmlRpcClient = getXmlRpc(); @@ -889,7 +888,7 @@ function getAllState(){ var strobj = xmlRpcClient.createType(xmlRpcClient.STRING,{}); strobj.data = 'thunderbird.partner'; var strvalue = xmlRpcClient.createType(xmlRpcClient.STRING,{}); - strvalue.data = document.getElementById("state").value; + strvalue.data = document.getElementById("country").value; xmlRpcClient.asyncCall(listAllStateHandler,null,'execute',[ strDbName,struid,strpass,strobj,strmethod,strvalue ],6); } |
