Skip to content

Commit

Permalink
Merge pull request #308 from hbrunn/8.0-account_journal_report_xls-te…
Browse files Browse the repository at this point in the history
…st-account-fiscalyear

[FIX] use account's fiscal year for tests
  • Loading branch information
sbidoul committed May 31, 2017
2 parents 325537e + 5c11adf commit 106e76b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Expand Up @@ -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'),
Expand All @@ -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'),
Expand All @@ -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'),
Expand All @@ -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'),
Expand Down
8 changes: 4 additions & 4 deletions account_journal_report_xls/tests/print_journal_by_period.yml
Expand Up @@ -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'),
Expand All @@ -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'),
Expand All @@ -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'),
Expand All @@ -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'),
Expand Down

0 comments on commit 106e76b

Please sign in to comment.