My models are
class LmcPhone(models.Model):
_name = 'lmc.phone'
service_id = fields.Many2one('lmc.service', required=True, string="Service")
lmc_job_id = fields.Many2one('lmc.job', string="Job", domain=[('id', '=', 'service_id.job_ids')])
class LmcService(models.Model):
_name = 'lmc.service'
name = fields.Char(string="Service")
job_ids = fields.One2many('lmc.job', 'service_id', string="Job")
class LmcJob(models.Model):
_name = 'lmc.job'
name = fields.Char(string="Job")
service_id = fields.Many2one('lmc.service')
notes
I set the domain in lmc_job_id field.I know it is not true.Please How help me how to set the correct domain here.Thanks in advance