Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
12717 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź
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:

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
2
cze 24
1621
4
lis 21
4655
2
cze 20
5470
1
maj 20
5226
1
maj 20
3210