From e268102b8d5c4b1e7d8e6dc39d8c77b0b04743bb Mon Sep 17 00:00:00 2001 From: "Jay (OpenERP)" Date: Thu, 16 Sep 2010 14:03:41 +0530 Subject: [PATCH] [IMP] Account : Added yml report test for account balance landscape report bzr revid: jvo@tinyerp.com-20100916083341-lsf0o0tar99zn3rb --- addons/account/test/account_report.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/addons/account/test/account_report.yml b/addons/account/test/account_report.yml index 639e571f674..b2429628b7c 100644 --- a/addons/account/test/account_report.yml +++ b/addons/account/test/account_report.yml @@ -39,4 +39,24 @@ (data, format) = netsvc.LocalService('report.account.aged_trial_balance').create(cr, uid, [], data_dict, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'account-aged_partner_balance.'+format), 'wb+').write(data) - \ No newline at end of file + +- + Print the Account Balance Report in Landscape mode +- + !python {model: account.account}: | + import netsvc, tools, os, time + data_dict = {'model': 'account.account', 'form': {'select_account': False,'format_perc':0,'show_columns' :0, 'compare_pattern': 'none','account_choice': 'moves','landscape':1,'period_manner': 'actual','fiscalyear': [ref('account.account_fiscalyear_fiscalyear0')] ,'target_move': 'all'}} + (data, format) = netsvc.LocalService('report.account.account.balance.landscape').create(cr, uid, [], data_dict, {'periods': [1, 83, 2, 3, 4, 5, 6, 7, 8, 9]}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'account-account_balance.'+format), 'wb+').write(data) + +- + Print the Account Balance Report in Landscape mode +- + !python {model: account.account}: | + import netsvc, tools, os, time + data_dict = {'model': 'account.account', 'form': {'select_account': False,'format_perc':0,'show_columns' :0, 'compare_pattern': 'none','account_choice': 'moves','landscape':1,'period_manner': 'actual','fiscalyear': [ref('account.account_fiscalyear_fiscalyear0')] ,'target_move': 'all'}} + (data, format) = netsvc.LocalService('report.account.account.balance.landscape').create(cr, uid, [], data_dict, {'periods': [1, 83, 2, 3, 4, 5, 6, 7, 8, 9]}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'account-account_balance.'+format), 'wb+').write(data) + \ No newline at end of file