~qtheuret/unifield-addons/ref_addons

« back to all changes in this revision

Viewing changes to survey/test/survey_report.yml

  • Committer: Quentin THEURET
  • Date: 2014-03-05 12:14:13 UTC
  • mfrom: (4612.2.2 unifield-addons)
  • Revision ID: qt@tempo-consulting.fr-20140305121413-qgiq1n9ujvojbtmv
Merge latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
-
2
 
 Print the Survey Browse Response Report through the wizard
3
 
-
4
 
  !python {model: survey}: |
5
 
    ctx={}
6
 
    ctx.update({'model': 'survey','active_ids': [(6,0,[ref('survey.survey_partner_feedback')])]})
7
 
    data_dict = {'response_ids' : [(6,0,[ref('survey.survey_partner_feedback')])], 'page_number' : True, 'without_pagebreak': True}
8
 
    from tools import test_reports
9
 
    test_reports.try_report_action(cr, uid, 'action_view_survey_print_answer',wiz_data=data_dict, context=ctx, our_module='survey')
10
 
 
11
 
-
12
 
 Print the Survey Analysis Report through the wizard
13
 
-
14
 
  !python {model: survey}: |
15
 
    ctx={}
16
 
    ctx.update({'model': 'survey','active_ids': [(6,0,[ref('survey.survey_partner_feedback')])]})
17
 
    data_dict = {'survey_ids' : [(6,0,[ref('survey.survey_partner_feedback')])]}
18
 
    from tools import test_reports
19
 
    test_reports.try_report_action(cr, uid, 'action_view_survey_print_statistics',wiz_data=data_dict, context=ctx, our_module='survey')
20
 
 
21
 
-
22
 
 Print the Survey Form Report through the wizard
23
 
-
24
 
  !python {model: survey}: |
25
 
    ctx={}
26
 
    ctx.update({'model': 'survey','active_ids': [(6,0,[ref('survey.survey_partner_feedback')])]})
27
 
    data_dict = {'survey_ids' : [(6,0,[ref('survey.survey_partner_feedback')])], 'page_number' : True, 'without_pagebreak': True}
28
 
    from tools import test_reports
29
 
    test_reports.try_report_action(cr, uid, 'action_view_survey_print',wiz_data=data_dict, context=ctx, our_module='survey')