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_foreign_currency as a_t_f_c
  7. class TestOpenItems(a_t_f_c.AbstractTestForeignCurrency):
  8. """
  9. Technical tests for Open Items Report.
  10. """
  11. def _getReportModel(self):
  12. return self.env['report_open_items_qweb']
  13. def _getQwebReportName(self):
  14. return 'account_financial_report_qweb.report_open_items_qweb'
  15. def _getXlsxReportName(self):
  16. return 'account_financial_report_qweb.report_open_items_xlsx'
  17. def _getXlsxReportActionName(self):
  18. return 'account_financial_report_qweb.action_report_open_items_xlsx'
  19. def _getReportTitle(self):
  20. return 'Open Items'
  21. def _getBaseFilters(self):
  22. return {
  23. 'date_at': time.strftime('%Y-12-31'),
  24. 'company_id': self.company.id,
  25. 'foreign_currency': True,
  26. }
  27. def _getAdditionalFiltersToBeTested(self):
  28. return [
  29. {'only_posted_moves': True},
  30. {'hide_account_balance_at_0': True},
  31. {'only_posted_moves': True, 'hide_account_balance_at_0': True},
  32. ]