(self)
return dict(action, context=action_context)
return the action to see all the rating of the project and activate default filters
return the action to see all the rating of the project and activate default filters
return the action to see all the rating of the project and activate default filters
def action_view_all_rating(self):
        """ return the action to see all the rating of the project and activate default filters"""
        action = self.env['ir.actions.act_window']._for_xml_id('project.rating_rating_action_view_project_rating')
        action['name'] = _('Ratings of %s') % (self.name,)
        action_context = ast.literal_eval(action['context']) if action['context'] else {}
        action_context.update(self._context)
        action_context['search_default_parent_res_name'] = self.name
        action_context.pop('group_by', None)
        return dict(action, context=action_context)
def action_view_all_rating ( self ) : action = self . env [ 'ir.actions.act_window' ] . _for_xml_id ( 'project.rating_rating_action_view_project_rating' ) action [ 'name' ] = _ ( 'Ratings of %s' ) % ( self . name , ) action_context = ast . literal_eval ( action [ 'context' ] ) if action [ 'context' ] else { } action_context . update ( self . _context ) action_context [ 'search_default_parent_res_name' ] = self . name action_context . pop ( 'group_by' , None ) return dict ( action , context = action_context )