İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3843 Görünümler

I ofcourse tried to pass a dict as follows with no luck:

<field name="continent_id" on_change="onchange_continent({'item1':1, 'item2':2}, continent_id)"/>

.py file:

def onchange_continent(self, cr, uid, id, testDict, continent_id=None, context=None):
    print testDict

but this throws an error:

Error: Could not get field with name '{'item1':1' for onchange 'onchange_continent({'item1':1, 'item2':2}, continent_id)'

where is the code for parsing the on_change function, maybe I can edit that for our module?

Thank You.

Avatar
Vazgeç
En İyi Yanıt

No, you can't do this.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Nis 16
3711
0
Mar 15
4701
5
May 24
25038
45
Nis 23
84850
8
Ara 22
19790