Creating partner from the thunderbird with non-english characters fail

Bug #707906 reported by Paulius Sladkevičius @ hbee
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 1

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.

Related branches

summary: - Creating partner from the thunderbird with non-english characters char
- fail
+ Creating partner from the thunderbird with non-english characters fail
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Paulius,

I have tested your scenario with stable 6.0 at my end. But all are working.
I created a partner with name which you have given in bug specification.
So what do you mean by test case fail? and please provide more information on this.

Thanks.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

I see that to show screenshot will be easy way :) Take a look, I hope this will illustrate my problem.

Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

Created partner with bad chars.

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Paulius,

Thanks for the reply.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Low
status: Incomplete → Confirmed
Jigar A. (ifixthat)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Jigar A. (ifixthat) wrote :

Hello Paulius,

      I have tested this bug with Unicode Character set and it is working fine.
      Can you please let us know which character set you are using with your Mail Client.

Thank You.

Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

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.

Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

My mistake - email subject not email header.

Changed in openobject-addons:
milestone: none → 6.0.1
Changed in openobject-addons:
milestone: 6.0.1 → none
Jigar A. (ifixthat)
Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

Hi Jigar,

I testing fixed plugin, now I didn't got any error related to email converting to lead, but problem with new contact creating didn't solve. I think that creating new contact and creating lead have something different in char handling. Thanks for this.

tfr (Openerp) (tfr)
Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.