i know the functional flow of project.task
which is when you change the state to completed
state a rating record is created in rating.rating
model. But I am unable to find out which method is responsible for creating the record in that model.
I tried to get the access token from the rating.rating model after the state change to complete
state too by using a function but unable to get it too:
rating_rec = self.env["rating.rating"].sudo().search([('partner_id', '=', self.partner_id.id), ('res_id', '=', self.id)], order='id desc', limit=1)
still I dont find the method which creates a rating record or nighter get the access token for that record,
I want to add a functionality just after the record is created in the rating.rating
model for that particular task.