Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3669 Vizualizări

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
feb. 25
1102
3
ian. 20
3309
0
ian. 20
6821
2
dec. 23
17103
2
mai 24
2799