I'm trying to import slack channels into odoo but the above mentioned error arises. I am trying to populate a many2many field. I tried to pass tuple into it but got no luck. If anyone has any suggestions,do reply. While debugging, I realized that the error occurs when the ORM methods like write or create gets triggered.
Following is my line of code which I believe is the reason behind this error:
'channel_partner_ids': [(6, 0, tuple(total_partner_ids))]
many2many create method error: unhashable type: 'list' Odoo 17.0
60 views Asked by Ali Raza At
1
In your case
total_partner_ids
is already a list. And if I translate your code, it look like thisBut if you look the Odoo documentation the magic number 6 work like this :
To resolve your code, you must remove the tuple function called.