跳至內容
選單
此問題已被標幟
1 回覆
3846 瀏覽次數

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.

頭像
捨棄
最佳答案

No, you can't do this.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
4月 16
3721
0
3月 15
4715
5
5月 24
25043
45
4月 23
84880
8
12月 22
19799