Hey guys,
I am sending a post request to the res.partner model. And I want to give value to category_id which is selection field (many2many). How I can achieve it?
My code is below:
id = models.execute_kw(db, uid, password, 'res.partner', 'create', [{
'name': name, 'x_customer_register_date': my_date, 'x_customer_id': customerId, 'category_id': tags,
'zip': postcode, 'street': address,
}])