← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 707906] Re: Creating partner from the thunderbird with non-english characters fail

 

I'm using UTF-8. Thunderbird 3.1.7.

Now I found more, that converting email to lead with Lituanian words in
an email header rise this error:

[2011-01-27 16:17:05,360][crm] INFO:mailgate:Message without message-id, generating a random one: 1296137825.36
[2011-01-27 16:17:05,360][crm] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home/komsas/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/komsas/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/komsas/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/komsas/openerp/server/bin/addons/thunderbird/partner/partner.py", line 202, in process_email
    return self.pool.get('email.server.tools').process_email(cr, uid, model, message, attach=True, context=None)
  File "/home/komsas/openerp/server/bin/addons/mail_gateway/mail_gateway.py", line 561, in process_email
    new_res_id, attachment_ids = create_record(msg)
  File "/home/komsas/openerp/server/bin/addons/mail_gateway/mail_gateway.py", line 411, in create_record
    res_id = model_pool.message_new(cr, uid, msg, context=context)
  File "/home/komsas/openerp/server/bin/addons/crm/crm_lead.py", line 344, in message_new
    res = mailgate_pool.get_partner(cr, uid, msg.get('from') or msg.get_unixfrom())
AttributeError: 'dict' object has no attribute 'get_unixfrom'   

I printed msg from the message_new() and got:
{'body': u'', 'message-id': 1296138578.2503631, 'id': 1296138578.2503631}

So I think it is problem from the thunderbird plugin.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/707906

Title:
  Creating partner from the thunderbird with non-english characters fail

Status in OpenERP Modules (addons):
  In Progress

Bug description:
  I'm happy to see that OpenERP Thunderbird plugin now works perfect
  except one problem for me. I'm testing it and found if I create
  partner with non-english chars (Lithuanian "ęėč.." etc.) all words are
  without these chars.

  I'm using v6 server r3320, addons r4354 on Ubuntu 10.04.





References