コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3824 ビュー

Hi,

I have written code to migrate my data using OpenERPLib. I want to set the value of "action" and "categ_id" column of "crm.opportunity2phonecall" object. Here below is my existing code.

scheduleCall = {
                'name': 'test', 
                'action': ['schedule'], 
                'phone': "123456",
                'user_id': 1, 
                "categ_id": 10,
                'note': mail['body']
            }
    SCHEDULECALL_MODEL.create(scheduleCall)

SCHEDULECALL_MODEL = OECONN.get_model("crm.opportunity2phonecall")

In the above code i have set the value "10" for "categ_id" field and 'action': ['schedule']. I don't know what is wrong in this code, it gives me an error -

TypeError: unhashable type: 'list'

Thanks in advance.

アバター
破棄
関連投稿 返信 ビュー 活動
2
2月 25
1284
3
1月 20
3381
0
1月 20
6900
2
12月 23
17213
2
5月 24
2948