You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
556 B
15 lines
556 B
# -*- coding: utf-8 -*-
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class AgedTrialBalanceBillwise(models.TransientModel):
|
|
_inherit = 'account.aged.trial.balance'
|
|
_description = 'Account Aged Trial balance Report Bill-wise'
|
|
|
|
report_type = fields.Selection([('bill', 'Bill-wise'), ('customer', 'Customer-wise')], default='customer',
|
|
string="Report Type")
|
|
|
|
def _print_report(self, data):
|
|
data['form']['report_type'] = self.report_type
|
|
return super(AgedTrialBalanceBillwise, self)._print_report(data)
|
|
|