Skip to Content
Menú
This question has been flagged
2 Respostes
12695 Vistes

i am migrating the module from openerp 6.1 to 7.0 and i have used default get method, that is not working in openerp 7.0

Avatar
Descartar
Best Answer
def default_get(self, cr, uid, fields, context=None):
    data = super(curent_object, self).default_get(cr, uid, fields, context=context)
    data['field']=value
    return data

This is a sample example of default_get:

Avatar
Descartar

Thanks@ Lakhsam Give you +1 vote,this code very helpfull me

Related Posts Respostes Vistes Activitat
2
de juny 24
1606
4
de nov. 21
4640
2
de juny 20
5457
1
de maig 20
5205
1
de maig 20
3189