~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to thunderbird/partner/partner.py

[IMP] Adding multi_company_stock_module, nto finished

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
    def thunderbird_mailcreate(self,cr,user,vals):
36
36
        dictcreate = dict(vals)
 
37
        import email
 
38
        header_name = email.Header.decode_header(dictcreate['name'])
 
39
        dictcreate['name'] = header_name and header_name[0] and header_name[0][0] 
37
40
        add_obj=self.pool.get('res.partner.address')
38
41
        case_pool=self.pool.get('crm.case')
39
42
        partner_ids=add_obj.search(cr,user,[('email','=',dictcreate['email_from'])])