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.
41 lines
1.2 KiB
41 lines
1.2 KiB
# Author: Julien Coux
|
|
# Copyright 2016 Camptocamp SA
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from datetime import date
|
|
from . import abstract_test
|
|
|
|
|
|
class TestAgedPartnerBalance(abstract_test.AbstractTest):
|
|
"""
|
|
Technical tests for Aged Partner Balance Report.
|
|
"""
|
|
|
|
def _getReportModel(self):
|
|
return self.env['report_aged_partner_balance']
|
|
|
|
def _getQwebReportName(self):
|
|
return 'account_financial_report.report_aged_partner_balance_qweb'
|
|
|
|
def _getXlsxReportName(self):
|
|
return 'a_f_r.report_aged_partner_balance_xlsx'
|
|
|
|
def _getXlsxReportActionName(self):
|
|
return 'account_financial_report.' \
|
|
'action_report_aged_partner_balance_xlsx'
|
|
|
|
def _getReportTitle(self):
|
|
return 'Odoo'
|
|
|
|
def _getBaseFilters(self):
|
|
return {
|
|
'date_at': date(date.today().year, 12, 31),
|
|
'company_id': self.company.id,
|
|
}
|
|
|
|
def _getAdditionalFiltersToBeTested(self):
|
|
return [
|
|
{'only_posted_moves': True},
|
|
{'show_move_line_details': True},
|
|
{'only_posted_moves': True, 'show_move_line_details': True},
|
|
]
|