Change the one2many field behaviour
I am trying to make a one2many field act as per the "bank_id" field on the customer form on Odoo v12 but unable to do it.
On the Customer Form | Invoicing tab | Bank accounts, there's a one2many relationship field that user may choose the bank account directly from here (no new forms open unless user chooses the option "Create and Edit").
I am trying to obtain the same result on another one2many relation field for my module but when user clicks on the "Add a line", Odoo is openning a new window requesting user to create a new record...
I don't want this pop-up window to appear.
I need to do exactly as the "bank account" one2many field on the ,customers form...
Can you please help?
Thank you in advance