In my product I have a tab for attributes. I have big problem to insert any value in this table like this for example:
I want to add a existing attribute_id and the values_ids inside a product like in this image:
I tried a lot of stuff and it's very difficult to insert data from the code.
I tried this:
write({'attribute_line_desc_ids': [(0, 0, {'attribute_id': 125, 'value_ids': [143, 144]})]})
write({'attribute_line_desc_ids': [(4, 0, {'attribute_id': new_att.id, 'values_ids': [(4, 0, att_val.id)]})]})
write({'attribute_line_desc_ids': [[0, new_att.id, {'value_ids': [[6, False, [143, 144, 145]]]}]]})
new_att.id="attribute_id" and att_val.id="value_ids"
can someone help with this problem?
Thank you.