'return the action to see all the rating about the tasks of the project'

@api.multi
def action_view_task_rating(self):

    action = self.env['ir.actions.act_window'].for_xml_id('rating', 'action_view_rating')
    action_domain = (safe_eval(action['domain']) if action['domain'] else [])
    domain = ['&', ('res_id', 'in', self.tasks.ids), ('res_model', '=', 'project.task')]
    if action_domain:
        domain = ((['&'] + domain) + action_domain)
    return dict(action, domain=domain)
