[IMP] account_followup:Test to Print Follow Ups

bzr revid: aag@tinyerp.com-20111215090948-rtomvfhs06cex1au
This commit is contained in:
Atik Agewan (OpenERP) 2011-12-15 14:39:48 +05:30
parent 0cca14a5d2
commit 805974d297
2 changed files with 12 additions and 1 deletions

View File

@ -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',

View File

@ -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')