From fb6e99ef79539a45e480d23d15ce607fcfd11470 Mon Sep 17 00:00:00 2001 From: "Jas (OpenERP)" Date: Wed, 22 Dec 2010 15:59:41 +0530 Subject: [PATCH] [Add] account : added yml file bzr revid: jas@tinyerp.com-20101222102941-301uimgmra7jbhkt --- addons/account/__openerp__.py | 5 +- .../account/project/test/project_report.yml | 54 +++++++++++++++++++ 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 addons/account/project/test/project_report.yml diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py index 0131ca0437b..1aa15f219f1 100644 --- a/addons/account/__openerp__.py +++ b/addons/account/__openerp__.py @@ -131,9 +131,10 @@ module named account_voucher. 'test/account_validate_account_move.yml', 'test/account_fiscalyear_close.yml', 'test/account_bank_statement.yml', - 'test/account_cash_statement.yml', 'test/account_report.yml', - ], + 'project/test/project_report.yml', + 'test/account_cash_statement.yml', + ], 'installable': True, 'active': False, 'certificate': '0080331923549', diff --git a/addons/account/project/test/project_report.yml b/addons/account/project/test/project_report.yml new file mode 100644 index 00000000000..afe3d8293d1 --- /dev/null +++ b/addons/account/project/test/project_report.yml @@ -0,0 +1,54 @@ +- + Print the Analytic Balance Report through the wizard +- + !python {model: account.analytic.account}: | + import netsvc, tools, os, time + ctx={} + ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root')]}) + data_dict = {'date1' : time.strftime('%Y-01-01'), 'date2' : time.strftime('%Y-%m-%d'), 'empty_acc' : True} + from tools import test_reports + test_reports.try_report_action(cr, uid, 'action_account_analytic_balance',wiz_data=data_dict, context=ctx, our_module='account') + +- + Print the Cost Ledger Report through the wizard +- + !python {model: account.analytic.account}: | + import netsvc, tools, os, time + ctx={} + ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root'),ref('account.analytic_absences'),ref('account.analytic_internal'),ref('account.analytic_our_super_product')]}) + data_dict = {'date1' : time.strftime('%Y-01-01'), 'date2' : time.strftime('%Y-%m-%d')} + from tools import test_reports + test_reports.try_report_action(cr, uid, 'action_account_analytic_cost',wiz_data=data_dict, context=ctx, our_module='account') + +- + Print the Cost Ledger(Only Quantities) Report through the wizard +- + !python {model: account.analytic.account}: | + import netsvc, tools, os, time + ctx={} + ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root'),ref('account.analytic_absences'),ref('account.analytic_internal'),ref('account.analytic_our_super_product')]}) + data_dict = {'date1' : time.strftime('%Y-01-01'), 'date2' : time.strftime('%Y-%m-%d')} + from tools import test_reports + test_reports.try_report_action(cr, uid, 'action_account_analytic_cost_ledger_journal',wiz_data=data_dict, context=ctx, our_module='account') + +- + Print the Analytic Journal Report through the wizard +- + !python {model: account.analytic.journal}: | + import netsvc, tools, os, time + ctx={} + ctx.update({'model': 'account.analytic.journal','active_ids': [ref('account.cose_journal_sale'), ref('account.exp'), ref('account.sit')]}) + data_dict = {'date1' : time.strftime('%Y-01-01'), 'date2' : time.strftime('%Y-%m-%d')} + from tools import test_reports + test_reports.try_report_action(cr, uid, 'action_account_analytic_journal',wiz_data=data_dict, context=ctx, our_module='account') + +- + Print the Inverted Analytic Balance Report through the wizard +- + !python {model: account.analytic.account}: | + import netsvc, tools, os, time + ctx={} + ctx.update({'model': 'account.analytic.account','active_ids': []}) + data_dict = {'date1' : time.strftime('%Y-01-01'), 'date2' : time.strftime('%Y-%m-%d')} + from tools import test_reports + test_reports.try_report_action(cr, uid, 'action_account_analytic_invert_balance',wiz_data=data_dict, context=ctx, our_module='account')