Skip to Content
Menu
This question has been flagged
2 Replies
12721 Rodiniai

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

Portretas
Atmesti
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:

Portretas
Atmesti

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

Related Posts Replies Rodiniai Veikla
2
birž. 24
1626
4
lapkr. 21
4656
2
birž. 20
5474
1
geg. 20
5232
1
geg. 20
3214