Browse Source

[FIX] use account's fiscal year for tests

pull/308/head
Holger Brunn 8 years ago
parent
commit
5c11adfe86
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  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}: | !python {model: account.account}: |
ctx = {} ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls'] wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id) period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'), data_dict = {'chart_account_id': ref('account.chart0'),
@ -29,7 +29,7 @@
- -
!python {model: account.account}: | !python {model: account.account}: |
ctx = {} ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls'] wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id) period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'), data_dict = {'chart_account_id': ref('account.chart0'),
@ -56,7 +56,7 @@
- -
!python {model: account.account}: | !python {model: account.account}: |
ctx = {} ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls'] wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id) period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'), data_dict = {'chart_account_id': ref('account.chart0'),
@ -83,7 +83,7 @@
- -
!python {model: account.account}: | !python {model: account.account}: |
ctx = {} ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls'] wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id) period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'), 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}: | !python {model: account.account}: |
ctx = {} ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls'] wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id) period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'), data_dict = {'chart_account_id': ref('account.chart0'),
@ -29,7 +29,7 @@
- -
!python {model: account.account}: | !python {model: account.account}: |
ctx = {} ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls'] wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id) period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'), data_dict = {'chart_account_id': ref('account.chart0'),
@ -56,7 +56,7 @@
- -
!python {model: account.account}: | !python {model: account.account}: |
ctx = {} ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls'] wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id) period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'), data_dict = {'chart_account_id': ref('account.chart0'),
@ -83,7 +83,7 @@
- -
!python {model: account.account}: | !python {model: account.account}: |
ctx = {} ctx = {}
fiscalyear_id = self.pool['account.fiscalyear'].search(cr, uid, [])[0]
fiscalyear_id = ref('account.data_fiscalyear')
wizard = self.pool['account.print.journal.xls'] wizard = self.pool['account.print.journal.xls']
period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id) period_ids = wizard.fy_period_ids(cr, uid, fiscalyear_id)
data_dict = {'chart_account_id': ref('account.chart0'), data_dict = {'chart_account_id': ref('account.chart0'),

Loading…
Cancel
Save