summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorksa (Open ERP) <ksa@tinyerp.co.in>2010-08-03 19:20:54 +0530
committerksa (Open ERP) <ksa@tinyerp.co.in>2010-08-03 19:20:54 +0530
commitc2ebd3ea4a4bdc8adec850d4866fbaffdf34d738 (patch)
treefc81f26388cbbe7e786f81e58db48fd208527180
parent676fc125914dbfb8f511f8b2784f50656bfb55a2 (diff)
[IMP] Improvement in thunderbird
bzr revid: ksa@tinyerp.co.in-20100803135054-2tqjfzu76z6w0dpz
-rw-r--r--addons/thunderbird/partner/partner.py7
-rw-r--r--addons/thunderbird/plugin/openerp_plugin.xpibin141434 -> 141037 bytes
2 files changed, 5 insertions, 2 deletions
diff --git a/addons/thunderbird/partner/partner.py b/addons/thunderbird/partner/partner.py
index 8e1a577e9c0..54b1ad8dbaa 100644
--- a/addons/thunderbird/partner/partner.py
+++ b/addons/thunderbird/partner/partner.py
@@ -30,8 +30,9 @@ class thunderbird_partner(osv.osv_memory):
_name = "thunderbird.partner"
_description="Thunderbid mails"
_rec_name="sender"
-
+
def mailcreate(self,cr,user,vals):
+ print "vvvvvvvvvvv",vals
dictcreate = dict(vals)
import email
header_name = email.Header.decode_header(dictcreate['name'])
@@ -49,6 +50,8 @@ class thunderbird_partner(osv.osv_memory):
def create_contact(self,cr,user,vals):
dictcreate = dict(vals)
+ if not eval(dictcreate.get('partner_id')):
+ dictcreate.update({'partner_id': False})
create_id = self.pool.get('res.partner.address').create(cr, user, dictcreate)
return create_id
@@ -81,7 +84,7 @@ class thunderbird_partner(osv.osv_memory):
res_id = dictcreate.get('res_id',False)
if res_id:
address_obj = self.pool.get('res.partner.address')
- result={
+ result={
'partner_id': dictcreate.get('partner_id',False),
'country_id': dictcreate.get('country_id', False),
'state_id': dictcreate('state_id', False),
diff --git a/addons/thunderbird/plugin/openerp_plugin.xpi b/addons/thunderbird/plugin/openerp_plugin.xpi
index b65feb03d7c..515faae83da 100644
--- a/addons/thunderbird/plugin/openerp_plugin.xpi
+++ b/addons/thunderbird/plugin/openerp_plugin.xpi
Binary files differ