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.
83 lines
3.4 KiB
83 lines
3.4 KiB
-
|
|
In order to test the Excel General Ledger webkit wizard I will print report on all the journals
|
|
-
|
|
!python {model: account.account}: |
|
|
ctx = {}
|
|
data_dict = {'chart_account_id': ref('account.chart0'),
|
|
'journal_ids': self.pool['account.journal'].search(cr, uid, []),
|
|
}
|
|
ctx.update({'model': 'account.account',
|
|
'active_ids': [ref('account.chart0')],
|
|
'active_id': ref('account.chart0')})
|
|
from openerp.tools import test_reports
|
|
test_reports.try_report_action(
|
|
cr, uid,
|
|
'account_journal_report_xls.action_print_journal_by_fiscalyear_xls',
|
|
wiz_data=data_dict,
|
|
context=ctx,
|
|
wiz_buttons='print_report',
|
|
our_module='account_journal_report_xls')
|
|
|
|
-
|
|
In order to test the Excel General Ledger webkit wizard I will print report with entries sorted by date
|
|
-
|
|
!python {model: account.account}: |
|
|
ctx = {}
|
|
data_dict = {'chart_account_id': ref('account.chart0'),
|
|
'journal_ids': self.pool['account.journal'].search(cr, uid, []),
|
|
'sort_selection': 'l.date',
|
|
}
|
|
ctx.update({'model': 'account.account',
|
|
'active_ids': [ref('account.chart0')],
|
|
'active_id': ref('account.chart0')})
|
|
from openerp.tools import test_reports
|
|
test_reports.try_report_action(
|
|
cr, uid,
|
|
'account_journal_report_xls.action_print_journal_by_fiscalyear_xls',
|
|
wiz_data=data_dict,
|
|
context=ctx,
|
|
wiz_buttons='print_report',
|
|
our_module='account_journal_report_xls')
|
|
|
|
-
|
|
In order to test the Excel General Ledger webkit wizard I will print report without grouped entries
|
|
-
|
|
!python {model: account.account}: |
|
|
ctx = {}
|
|
data_dict = {'chart_account_id': ref('account.chart0'),
|
|
'journal_ids': self.pool['account.journal'].search(cr, uid, []),
|
|
'group_entries': False,
|
|
}
|
|
ctx.update({'model': 'account.account',
|
|
'active_ids': [ref('account.chart0')],
|
|
'active_id': ref('account.chart0')})
|
|
from openerp.tools import test_reports
|
|
test_reports.try_report_action(
|
|
cr, uid,
|
|
'account_journal_report_xls.action_print_journal_by_fiscalyear_xls',
|
|
wiz_data=data_dict,
|
|
context=ctx,
|
|
wiz_buttons='print_report',
|
|
our_module='account_journal_report_xls')
|
|
|
|
-
|
|
In order to test the Excel General Ledger webkit wizard I will print report with currency
|
|
-
|
|
!python {model: account.account}: |
|
|
ctx = {}
|
|
data_dict = {'chart_account_id': ref('account.chart0'),
|
|
'journal_ids': self.pool['account.journal'].search(cr, uid, []),
|
|
'amount_currency': False,
|
|
}
|
|
ctx.update({'model': 'account.account',
|
|
'active_ids': [ref('account.chart0')],
|
|
'active_id': ref('account.chart0')})
|
|
from openerp.tools import test_reports
|
|
test_reports.try_report_action(
|
|
cr, uid,
|
|
'account_journal_report_xls.action_print_journal_by_fiscalyear_xls',
|
|
wiz_data=data_dict,
|
|
context=ctx,
|
|
wiz_buttons='print_report',
|
|
our_module='account_journal_report_xls')
|
|
|