Ex.
class myClass(models.Model):
_name = 'my.class'
name = fields.Char(string='Title', required=True)
description = fields.Char(string='description', required=True)
model_name = fields.Many2one('ir.model', string="Model", required=True)
model_field = fields.Many2one('ir.model.fields', string='Field', domain="[('model_id', '=',model_name))
How i get date strings from M2O fields: model_name, model_field.
Let says, in a @api.onchange decorator, thanks in advance.
@api.depends('time', 'model_field')
@api.onchange('model_field')
def _my_funt(self):
code...