# -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import ValidationError
import datetime

class ReportCashierRollDonor(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_donor_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])

        docargs = {
            'doc_ids': docids,
            'doc_model': 'normal.p',
            'docs': target,
            'block_num': num,
        }

        return Report.render('cdg_base.receipt_cashier_roll_donor_template', docargs)

class ReportCashierRollMember(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_member_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])


        docargs = {
            'doc_ids': docids,
            'doc_model': 'normal.p',
            'docs': target,
            'block_num': num,
        }

        return Report.render('cdg_base.receipt_cashier_roll_member_template', docargs)
class ReportCashierRollConsultant(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_consultant_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])


        docargs = {
            'doc_ids': docids,
            'doc_model': 'normal.p',
            'docs': target,
            'block_num': num,
        }

        return Report.render('cdg_base.receipt_cashier_roll_consultant_template', docargs)
0fe224e4afab0e5bd6690bc16854c079a61f2cfd
<mask token>


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


class ReportCashierRollConsultant(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_consultant_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])
        docargs = {'doc_ids': docids, 'doc_model': 'normal.p', 'docs':
            target, 'block_num': num}
        return Report.render(
            'cdg_base.receipt_cashier_roll_consultant_template', docargs)

<mask token>


class ReportCashierRollMember(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_member_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])
        docargs = {'doc_ids': docids, 'doc_model': 'normal.p', 'docs':
            target, 'block_num': num}
        return Report.render('cdg_base.receipt_cashier_roll_member_template',
            docargs)


class ReportCashierRollConsultant(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_consultant_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])
        docargs = {'doc_ids': docids, 'doc_model': 'normal.p', 'docs':
            target, 'block_num': num}
        return Report.render(
            'cdg_base.receipt_cashier_roll_consultant_template', docargs)

<mask token>


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


class ReportCashierRollMember(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_member_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])
        docargs = {'doc_ids': docids, 'doc_model': 'normal.p', 'docs':
            target, 'block_num': num}
        return Report.render('cdg_base.receipt_cashier_roll_member_template',
            docargs)


class ReportCashierRollConsultant(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_consultant_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])
        docargs = {'doc_ids': docids, 'doc_model': 'normal.p', 'docs':
            target, 'block_num': num}
        return Report.render(
            'cdg_base.receipt_cashier_roll_consultant_template', docargs)

<mask token>


class ReportCashierRollDonor(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_donor_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])
        docargs = {'doc_ids': docids, 'doc_model': 'normal.p', 'docs':
            target, 'block_num': num}
        return Report.render('cdg_base.receipt_cashier_roll_donor_template',
            docargs)


class ReportCashierRollMember(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_member_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])
        docargs = {'doc_ids': docids, 'doc_model': 'normal.p', 'docs':
            target, 'block_num': num}
        return Report.render('cdg_base.receipt_cashier_roll_member_template',
            docargs)


class ReportCashierRollConsultant(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_consultant_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])
        docargs = {'doc_ids': docids, 'doc_model': 'normal.p', 'docs':
            target, 'block_num': num}
        return Report.render(
            'cdg_base.receipt_cashier_roll_consultant_template', docargs)

# -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import ValidationError
import datetime

class ReportCashierRollDonor(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_donor_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])

        docargs = {
            'doc_ids': docids,
            'doc_model': 'normal.p',
            'docs': target,
            'block_num': num,
        }

        return Report.render('cdg_base.receipt_cashier_roll_donor_template', docargs)

class ReportCashierRollMember(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_member_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])


        docargs = {
            'doc_ids': docids,
            'doc_model': 'normal.p',
            'docs': target,
            'block_num': num,
        }

        return Report.render('cdg_base.receipt_cashier_roll_member_template', docargs)
class ReportCashierRollConsultant(models.AbstractModel):
    _name = 'report.cdg_base.receipt_cashier_roll_consultant_template'

    @api.model
    def render_html(self, docids, data=None):
        Report = self.env['report']
        num = data['block_num']
        target = self.env['normal.p'].browse(data['from_target'])


        docargs = {
            'doc_ids': docids,
            'doc_model': 'normal.p',
            'docs': target,
            'block_num': num,
        }

        return Report.render('cdg_base.receipt_cashier_roll_consultant_template', docargs)