Browse Source

Merge pull request #308 from hbrunn/8.0-account_journal_report_xls-test-account-fiscalyear

[FIX] use account's fiscal year for tests
pull/320/head
Stéphane Bidoul (ACSONE) 8 years ago
committed by GitHub
parent
commit
106e76bea1
  1. 8
      account_journal_report_xls/tests/export_csv_journal_by_period.yml
  2. 8
      account_journal_report_xls/tests/print_journal_by_period.yml

8
account_journal_report_xls/tests/export_csv_journal_by_period.yml

@ -3,7 +3,7 @@
-
!python {model: account.account}: |
ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'),
@ -29,7 +29,7 @@
-
!python {model: account.account}: |
ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'),
@ -56,7 +56,7 @@
-
!python {model: account.account}: |
ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'),
@ -83,7 +83,7 @@
-
!python {model: account.account}: |
ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'),

8
account_journal_report_xls/tests/print_journal_by_period.yml

@ -3,7 +3,7 @@
-
!python {model: account.account}: |
ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'),
@ -29,7 +29,7 @@
-
!python {model: account.account}: |
ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'),
@ -56,7 +56,7 @@
-
!python {model: account.account}: |
ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'),
@ -83,7 +83,7 @@
-
!python {model: account.account}: |
ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'),

Loading…
Cancel
Save