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

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.

Awatar
Odrzuć
Najlepsza odpowiedź

No, you can't do this.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
kwi 16
3995
0
mar 15
4907
5
maj 24
25311
45
kwi 23
85457
8
gru 22
20084