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.

42 lines
1.2 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # -*- coding: utf-8 -*-
  2. # Author: Julien Coux
  3. # Copyright 2016 Camptocamp SA
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. import time
  6. from . import abstract_test
  7. class TestAgedPartnerBalance(abstract_test.AbstractTest):
  8. """
  9. Technical tests for Aged Partner Balance Report.
  10. """
  11. def _getReportModel(self):
  12. return self.env['report_aged_partner_balance_qweb']
  13. def _getQwebReportName(self):
  14. return 'account_financial_report_qweb.report_aged_partner_balance_qweb'
  15. def _getXlsxReportName(self):
  16. return 'account_financial_report_qweb.report_aged_partner_balance_xlsx'
  17. def _getXlsxReportActionName(self):
  18. return 'account_financial_report_qweb.' \
  19. 'action_report_aged_partner_balance_xlsx'
  20. def _getReportTitle(self):
  21. return 'Aged Partner Balance'
  22. def _getBaseFilters(self):
  23. return {
  24. 'date_at': time.strftime('%Y-12-31'),
  25. 'company_id': self.env.ref('base.main_company').id,
  26. }
  27. def _getAdditionalFiltersToBeTested(self):
  28. return [
  29. {'only_posted_moves': True},
  30. {'show_move_line_details': True},
  31. {'only_posted_moves': True, 'show_move_line_details': True},
  32. ]