Odoo Help

3

Custom field and export/import from CSV

By
thenon
on 4/16/13, 10:13 AM 2,169 views

I have a custom field like this below.

class res_partner(osv.osv): _inherit = 'res.partner'

_columns = {
    'mycol': fields.char('MyCol', size=16, help='My Col')
    }

mycol does not show up in the list of fields available to import/export.

Is this not possible? Do I need to add something to my column to make it compatible?

5

patrick

--patrick--
patrick
1958
| 5 4 7
Baarn, Netherlands
--patrick--
patrick
On 4/16/13, 11:51 AM

Are you sure you have installed the module? Otherwise you cannot export it.

In my project, I have made several modules, one of them extends res.partner. When selecting the partners, I can export my own fields.

You have to look for the name you gave it in the definition, not the fieldname. In your example, look for MyCol, instead of mycol.

Thanks Patrick, there must have been a different (perhaps compilation) problem due to other editing, as now that I've gone back to recheck, MyCol is has appeared where it wasn't before. Am learning to keep a very close eye on the log file! Thanks.

thenon
on 4/16/13, 11:56 AM

Your Answer

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

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

Question tools

0 follower(s)

Stats

Asked: 4/16/13, 10:13 AM
Seen: 2169 times
Last updated: 10/20/15, 7:14 AM