# See LICENSE file for full copyright and licensing details.

from odoo import api, models


class ReportStudentFeesRegister(models.AbstractModel):
    _name = "report.school_fees.student_fees_register"
    _description = "School Fees Register Report"

    def get_month(self, indate):
        """Method to get month"""
        return indate.strftime("%B") + "-" + indate.strftime("%Y")

    @api.model
    def _get_report_values(self, docids, data=None):
        """Inherited method to get report data"""
        students_rec = self.env["student.fees.register"].search(
            [("id", "in", docids)]
        )
        fees_report = self.env["ir.actions.report"]._get_report_from_name(
            "school_fees.student_fees_register"
        )
        return {
            "doc_ids": docids,
            "doc_model": fees_report.model,
            "docs": students_rec,
            "data": data,
            "get_month": self.get_month,
        }

40ab9ea837511fec8fcd8d8e4306f198cfcef87e
<mask token>


class ReportStudentFeesRegister(models.AbstractModel):
    <mask token>
    <mask token>

    def get_month(self, indate):
        """Method to get month"""
        return indate.strftime('%B') + '-' + indate.strftime('%Y')
    <mask token>

<mask token>


class ReportStudentFeesRegister(models.AbstractModel):
    <mask token>
    <mask token>

    def get_month(self, indate):
        """Method to get month"""
        return indate.strftime('%B') + '-' + indate.strftime('%Y')

    @api.model
    def _get_report_values(self, docids, data=None):
        """Inherited method to get report data"""
        students_rec = self.env['student.fees.register'].search([('id',
            'in', docids)])
        fees_report = self.env['ir.actions.report']._get_report_from_name(
            'school_fees.student_fees_register')
        return {'doc_ids': docids, 'doc_model': fees_report.model, 'docs':
            students_rec, 'data': data, 'get_month': self.get_month}

<mask token>


class ReportStudentFeesRegister(models.AbstractModel):
    _name = 'report.school_fees.student_fees_register'
    _description = 'School Fees Register Report'

    def get_month(self, indate):
        """Method to get month"""
        return indate.strftime('%B') + '-' + indate.strftime('%Y')

    @api.model
    def _get_report_values(self, docids, data=None):
        """Inherited method to get report data"""
        students_rec = self.env['student.fees.register'].search([('id',
            'in', docids)])
        fees_report = self.env['ir.actions.report']._get_report_from_name(
            'school_fees.student_fees_register')
        return {'doc_ids': docids, 'doc_model': fees_report.model, 'docs':
            students_rec, 'data': data, 'get_month': self.get_month}

from odoo import api, models


class ReportStudentFeesRegister(models.AbstractModel):
    _name = 'report.school_fees.student_fees_register'
    _description = 'School Fees Register Report'

    def get_month(self, indate):
        """Method to get month"""
        return indate.strftime('%B') + '-' + indate.strftime('%Y')

    @api.model
    def _get_report_values(self, docids, data=None):
        """Inherited method to get report data"""
        students_rec = self.env['student.fees.register'].search([('id',
            'in', docids)])
        fees_report = self.env['ir.actions.report']._get_report_from_name(
            'school_fees.student_fees_register')
        return {'doc_ids': docids, 'doc_model': fees_report.model, 'docs':
            students_rec, 'data': data, 'get_month': self.get_month}

# See LICENSE file for full copyright and licensing details.

from odoo import api, models


class ReportStudentFeesRegister(models.AbstractModel):
    _name = "report.school_fees.student_fees_register"
    _description = "School Fees Register Report"

    def get_month(self, indate):
        """Method to get month"""
        return indate.strftime("%B") + "-" + indate.strftime("%Y")

    @api.model
    def _get_report_values(self, docids, data=None):
        """Inherited method to get report data"""
        students_rec = self.env["student.fees.register"].search(
            [("id", "in", docids)]
        )
        fees_report = self.env["ir.actions.report"]._get_report_from_name(
            "school_fees.student_fees_register"
        )
        return {
            "doc_ids": docids,
            "doc_model": fees_report.model,
            "docs": students_rec,
            "data": data,
            "get_month": self.get_month,
        }
