Hello
I have used the following command to update a many2many field :
rec2.list_packs =(3,[pack_id for pack_id in self.pack_ref.ids])
The problem is that i get this erreur message :
The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set
[object with reference: affichage2_pack_stock - affichage2.pack.stock]
Normally get this error when value to a required field is not supplied, check whether there is a required field if so give value to the field also
Ok thank you Niyas i will check that;