Moving m2m records around
I have a situation where two m2m fields are shown on a model.
Records from the second m2m field (displayed as kanban) have to be added or removed from the first m2m (displayed as a tree).
I am confused as to how to define the "add_record_to_m2m_1" action (see below).
Does it have to be defined at the "test.model" level or at the "product.template" level ?
When calling the action is "self" the "test.model" record or the "product.template" record ?
and how to refer to the other one ? context ? records ? uid ? .. is it even possible ?
Thanks for the input.
_name = "test.model"
<field name="m2m_2" widget="many2many_kanban">