Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hi, am using a res_partner inherit module and i have a field.char. But the probleme i have is, where i fill this field to create the object i get this error "UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128)"
Help me please
In Python, unicode and str are two different data types. When Python tries to implicitly convert between one and the other, it uses encode (unicode -> str) and decode (str -> unicode). In OpenERP, text is actually Unicode. Encode and decode errors like your one can be avoided with some understanding of how Unicode works in Python. Ned Batchelder made an excellent presentation on the subject, google "unicode pain python".
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/17/13, 12:37 AM|
|Seen: 4727 times|
|Last updated: 3/16/15, 8:10 AM|