Have a form view with a one2many list with one record inside. Click on it to open it. The form view that will open must also have a one2many list Before this commit, there was a crash because the information of the main record's view was not propagated to the form view of the opened record. Generally speaking, env.config was lost. After this commit, we propagate correctly the config. closes odoo/odoo#96618 Signed-off-by: Géry Debongnie <ged@odoo.com>