Hello everyone, anyone can explain why it is happening? I have module that includes human resource, now when i import employees an error pops up saying:
File "/opt/openerp/server-7/openerp/addons/base_import/models.py", line 104, in get_fields
I tried to change 'string': field['string'] ;which is found on the default module, into field.get('string') but here what the UI says:
Import preview failed due to: 'NoneType' object has no attribute 'lower'. The issue is usually an incorrect file encoding.
Any help is much appreciate.
Hello Anirudh Lou,
It seems the problem is in your custom module(s).
As per the error, I have doubt that one of your fields in your custom module(s) doesn't have string (label) which causes the error.
In your module it would be like fields.char() instead of fields.char("My Field").
Hope my guess is right and it will help you.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 1/2/15, 2:45 AM|
|Seen: 1108 times|
|Last updated: 3/16/15, 8:10 AM|