This question has been flagged
2574 Views

I have just relized that if I create a many2many field and I put it in a view, then when you click on the button to add a new record, a blank popup appears with the buttons create and cancel. If I press create, a form is shown to fill in the fields of the new record, which is right. But, why is there an intermediate window? Can I remove it?

I know how to remove it, I can change the type of the field to a one2many pointing to an intermediate table which will have two many2one fields pointing to the models which were connected by the many2many (Before: model_1 <- many2many -> model_2, Now: model_1 -> one2many -> model_rel <- many2one <- model_1, model_2)

Is there any better way to do it?

Avatar
Discard