Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
12022 Visualizzazioni

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?

Avatar
Abbandona
Risposta migliore

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.

Avatar
Abbandona
Autore

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.

Post correlati Risposte Visualizzazioni Attività
1
mar 15
5654
2
mag 23
2560
3
lug 17
3960
2
giu 17
8408
4
ott 23
8684