What I\'ve done:
I have a module with
myfield = fields.Many2one(\'res.partner\', string=\"Graduate\", domain=[(\'is_graduated\', \'
You need to use an onchange method for myfield, then inside it you need to fill the graduations field, something like this:
onchange method
myfield
graduations
@api.onchange('myfield'): def _onchange_myfield(self): #fill graduations field here... ...