I have
x_trainer_id = fields.Many2one('res.partner', string='Trainer')
field, and I want to filter data in it by the value that is put in category_id
tag field in partner form
.
I want to show just those records in it their category_id
tag value is defined Trainer.