My question would be can I call Add an item button which appears bellow many2many field and give that functionality to my custom button. The result would be something like this: I have a simple primary button and invisible many2many field. When i click my primary button i get to fill my many2many field which still has to stay invisible. Basically primary button has to open form that would be opened by add an items button.
Thank you for considering my question I hope it was clear :) !