Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how to set value in "action" column of "crm.opportunity2phonecall" object

By
Krishnraj
on 12/18/13, 2:54 AM 747 views

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/18/13, 2:54 AM
Seen: 747 times
Last updated: 3/16/15, 8:10 AM