I have a One2many field that depends on the value of a Many2one field in the form. The related model for the One2many field depends upon the value of the Many2one field.
i_name = fields.Many2one('mod.items',string="Item")
i_fields = fields.One2many('mod.x_fields','field_name',string="Item Characteristics")
Here, the 'mod.x_fields' (model name) should vary according to the i_name field value. Is it possible to make such a field? Can this be done using api.onchange?