Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
12700 Visualizações

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
Cancelar
Melhor resposta
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
Cancelar

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

Publicações relacionadas Respostas Visualizações Atividade
2
jun. 24
1607
4
nov. 21
4644
2
jun. 20
5460
1
mai. 20
5211
1
mai. 20
3192