diff --git a/addons/account_followup/__openerp__.py b/addons/account_followup/__openerp__.py index 3fe52186f03..def1c0727ba 100644 --- a/addons/account_followup/__openerp__.py +++ b/addons/account_followup/__openerp__.py @@ -57,7 +57,9 @@ Note that if you want to check the followup level for a given partner/account en 'account_followup_data.xml', ], 'demo_xml': [], - 'test': ['test/account_followup.yml'], + 'test': ['test/account_followup.yml', + 'test/account_followup_report.yml'], + 'installable': True, 'active': False, 'certificate': '0072481076453', diff --git a/addons/account_followup/test/account_followup_report.yml b/addons/account_followup/test/account_followup_report.yml new file mode 100644 index 00000000000..d1b3bbbd0f0 --- /dev/null +++ b/addons/account_followup/test/account_followup_report.yml @@ -0,0 +1,9 @@ +- + In order to test the report i will print a followup report. +- + !python {model: account.followup.print.all}: | + import time + ctx = {'form_view_ref':'account_followup.view_account_followup_print_all', 'followup_id': ref('account_followup.demo_followup1'),'date': time.strftime('%Y-%m-%d'),'model': 'account_followup.followup','active_ids':[ref('account_followup_print_all_0')], 'company_id':ref('base.main_company')} + data_dict = {'email_conf': 1} + from tools import test_reports + test_reports.try_report_action(cr, uid, 'action_account_followup_print_all', context=ctx, wiz_data=data_dict,wiz_buttons=["Print Follow Ups"], our_module='account_followup')