Trợ giúp

0

Trying to add a tag under a certain condition, using automated actions

Avatar
Fabiana Feas

After searching over internet I've got to this point but can't go further. I guess this is the way a many2many field should be called but I can't understand neither find which field is supposed to go on the last part. Just want to add a tag to a sale order automatically.

record.write({'tag_ids': [(6, 0, ??)]})

Ảnh đại diện
Huỷ bỏ
1 Trả lời
0
Avatar
Chris TRINGHAM
Best Answer
'tag_ids': [(6, 0, tag_ids)]

That's assuming that the many2many field is tag_ids


Ảnh đại diện
Huỷ bỏ