Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
12699 Zobrazení

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
Zrušit
Nejlepší odpověď
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
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
2
čvn 24
1606
4
lis 21
4644
2
čvn 20
5460
1
kvě 20
5209
1
kvě 20
3192