[FIX] web: onchange create a record in an invisible x2m

Before this commit, in a form view with an x2many that contains an
invisible x2many, if an onchange returns a create command for the
invisible x2many field, a crash is displayed.

Problem:
The getCommands function for processing CREATE commands needs the
activeField of the x2many to be present with activeFields and fields.
Currently, the activeField of an invisible x2many has no related fields.

Solution:
All x2many fields have "related" in the activeField by default.

Part-of: odoo/odoo#129989
This commit is contained in:
FrancoisGe
2023-07-31 16:11:12 +02:00
parent 5a9fe7a7d0
commit e6f987ed18

Diff Content Not Available