Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3866 Weergaven

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
Annuleer
Beste antwoord

No, you can't do this.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
apr. 16
3760
0
mrt. 15
4752
5
mei 24
25087
45
apr. 23
84999
8
dec. 22
19865