'Render the report ``name`` for the given IDs. The report must be defined
for this model, not another.'

@api.multi
def print_report(self, name, data):

    report = self.env['ir.actions.report.xml']._lookup_report(name)
    assert (self._name == report.table)
    (cr, uid, context) = self.env.args
    return report.create(cr, uid, self.ids, data, context)
